code_timer 1.0.3
code_timer: ^1.0.3 copied to clipboard
Code Execution Timer for Dart and Flutter
example #
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
example2 #
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