hirestimer.cs
来自「破解的飞信源代码」· CS 代码 · 共 20 行
CS
20 行
namespace NCindy.Protocol.RUDP.Timer
{
using System;
using System.Diagnostics;
public static class HiResTimer
{
private static readonly double _frequency = (((double) Stopwatch.Frequency) / 1000000);
public static long MicroSeconds
{
get
{
return (long) (((double) Stopwatch.GetTimestamp()) / _frequency);
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?