From 018ef960b03365d8cfd4c229562ef2874af07d2f Mon Sep 17 00:00:00 2001 From: Mark Sturgill Date: Wed, 30 Oct 2013 11:49:59 -0700 Subject: [PATCH] mono tickcount fix --- Server/Main.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/Main.cs b/Server/Main.cs index d33269a1f..335b1653d 100644 --- a/Server/Main.cs +++ b/Server/Main.cs @@ -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);