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