Skip to content

baba-s/Kogane.StopwatchScope

Repository files navigation

Kogane Stopwatch Scope

経過時間を計測するクラス

使用例

StopwatchScope.OnStart += name =>
{
    Debug.Log( $"[Stopwatch]「{name}」開始" );
};
StopwatchScope.OnComplete += ( name, elapsed ) =>
{
    Debug.Log( $"[Stopwatch]「{name}」終了    {elapsed.TotalSeconds:0.00}" );
};

using ( new StopwatchScope( "【ここにタグ名】" ) )
{
}

About

【Unity】経過時間を計測するクラス

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages