Changeset 17 for trunk/GameServer.pas
- Timestamp:
- Jan 8, 2017, 11:21:02 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GameServer.pas
r10 r17 7 7 8 8 uses 9 Protocol, Database, dynlibs, Windows;9 Protocol, Database, dynlibs, Platform, dateutils; 10 10 11 11 const … … 127 127 AIInfo: array [0 .. nPl - 1] of string; 128 128 Notify: TNotifyFunction; 129 PerfFreq, LastClientTime: int64;129 LastClientTime: TDateTime; 130 130 {$IFOPT O-}HandoverStack: array [0 .. 31] of Cardinal; {$ENDIF} 131 131 AutoSaveExists, LoadOK, WinOnAlone, PreviewElevation, MovieStopped: boolean; … … 320 320 var 321 321 p: integer; 322 T: int64;322 T: TDateTime; 323 323 begin 324 QueryPerformanceCounter(T);324 T := NowPrecise; 325 325 PutMessage(1 shl 16 + 2, Format('CLIENT: took %.1f ms', 326 [{$IFDEF VER100}(T.LowPart - LastClientTime.LowPart) 327 {$ELSE}(T - LastClientTime){$ENDIF} * 1000.0 / PerfFreq])); 326 [MilliSecondOf(T - LastClientTime)])); 328 327 LastClientTime := T; 329 328 PutMessage(1 shl 16 + 2, Format('CLIENT: calling %d (%s)', … … 4472 4471 initialization 4473 4472 4474 QueryPerformanceFrequency(PerfFreq);4475 4473 FindFirst(ParamStr(0), $21, ExeInfo); 4476 4474
Note:
See TracChangeset
for help on using the changeset viewer.