Changeset 164 for MicroThreading/UPlatform.pas
- Timestamp:
- Feb 8, 2011, 11:05:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MicroThreading/UPlatform.pas
r156 r164 28 28 {$IFDEF Windows}TimerValue: Int64;{$ENDIF} 29 29 begin 30 try 31 NowPreciseLock.Acquire; 30 // Result := Now; 31 //try 32 //NowPreciseLock.Acquire; 32 33 {$IFDEF Windows} 33 34 QueryPerformanceCounter(TimerValue); … … 42 43 {$ENDIF} 43 44 44 Result := (Trunc(Now / OneSecond) + Frac(Result)) * OneSecond; 45 finally 46 NowPreciseLock.Release; 47 end; 45 Result := Result * OneSecond; 46 //Result := (Trunc(Now / OneSecond) + Frac(Result)) * OneSecond; 47 //finally 48 //NowPreciseLock.Release; 49 //end; 48 50 end; 49 51
Note:
See TracChangeset
for help on using the changeset viewer.