mono tickcount fix
This commit is contained in:
parent
fc923a9ded
commit
018ef960b0
1 changed files with 2 additions and 1 deletions
|
|
@ -132,11 +132,12 @@ namespace Server
|
|||
public static long TickCount {
|
||||
get {
|
||||
long t = 0;
|
||||
|
||||
#if !MONO
|
||||
// TODO: Unreliable with certain system configurations.
|
||||
if (_HighRes)
|
||||
SafeNativeMethods.QueryPerformanceCounter(out t);
|
||||
else
|
||||
#endif
|
||||
t = DateTime.UtcNow.Ticks;
|
||||
|
||||
return (long)((double)t * _Frequency);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue