FLUTTER ECOSYSTEM

melodysdreamj/code_timer

melodysdreamj/code_timer open-source repository details.

code_timer 專案封面
Stars
1
Forks
0
最近推送(UTC)
2024年5月9日
專案狀態
未封存
june lee GitHub avatar
GITHUB User

june lee ↗

A developer in Songdo who loves cafes and good restaurants.

語言Dart

此儲存庫發佈的套件

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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