mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[=] GameTickWatcher
[=] GameTickWatcher
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user