code_timer 1.0.4 copy "code_timer: ^1.0.4" to clipboard
code_timer: ^1.0.4 copied to clipboard

Code Execution Timer for Dart and Flutter

installation #

dart pub add code_timer

usage #

  CodeTimer.start();

  // add your code here
  await Future.delayed(const Duration(seconds: 1));

  CodeTimer.stop();

you will see console like this

Execution time: 1004 ms

usage2 #

CodeTimer.start();

// add your code here
await Future.delayed(const Duration(seconds: 1));

CodeTimer.record(); // optional

// add your code here
await Future.delayed(const Duration(seconds: 1));

CodeTimer.stop();

you will see console like this

Record time: 1004 ms
Execution time: 2007 ms
6
likes
120
points
29
downloads

Publisher

verified publisherjunelee.fun

Weekly Downloads

Code Execution Timer for Dart and Flutter

Repository (GitHub)

Documentation

API reference

License

unknown (license)

More

Packages that depend on code_timer