v1.0.4
code_timer
Dart 和 Flutter 的代码执行计时器
6喜欢 40近 30 天下载125Pub 分数
AndroidiOSWebmacOSWindowsLinux
melodysdreamj/code_timer open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
dart pub add code_timer
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
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