FLUTTER ECOSYSTEM

melodysdreamj/code_timer

melodysdreamj/code_timer open-source repository details.

code_timer のプロジェクト画像
Stars
1
Forks
0
最終プッシュ(UTC)
2024/05/09
プロジェクト状態
公開中
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