0 purchases
code timer
installation #
dart pub add code_timer
copied to clipboard
usage #
CodeTimer.start();
// add your code here
await Future.delayed(const Duration(seconds: 1));
CodeTimer.stop();
copied to clipboard
you will see console like this
Execution time: 1004 ms
copied to clipboard
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();
copied to clipboard
you will see console like this
Record time: 1004 ms
Execution time: 2007 ms
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.