hirestimer.cs
来自「rudp可靠保障得udp传输」· CS 代码 · 共 24 行
CS
24 行
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
namespace Helper.Net.RUDP
{
static public class HiResTimer
{
static private double _frequency = ((double)Stopwatch.Frequency) / 1000000;
/// <summary>
/// Returns the current time in micro seconds
/// </summary>
static public long MicroSeconds
{
get
{
return (long)(Stopwatch.GetTimestamp() / _frequency);
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?