[=] GameTickWatcher

[=] GameTickWatcher
This commit is contained in:
ALEXTANG
2023-04-21 10:37:01 +08:00
parent 4f908d46af
commit 2fcd02d69e

View File

@@ -5,13 +5,13 @@ namespace GameBase
/// <summary> /// <summary>
/// 用来在多线程下检测耗时。 /// 用来在多线程下检测耗时。
/// </summary> /// </summary>
public struct GameTickWatcher public class GameTickWatcher
{ {
private long _startTick; private long _startTick;
public GameTickWatcher() public GameTickWatcher()
{ {
_startTick = System.DateTime.Now.Ticks; Refresh();
} }
public void Refresh() public void Refresh()