forked from speed-dreams/speed-dreams-code
multithreading
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2538 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: e5aeba52e41b74e9654d239f73e4c35f3e07773d Former-commit-id: ae17edea25c5fd3279d4c479ae7ec9583169c59c
This commit is contained in:
parent
a6e23a4cb3
commit
c2376e7f29
1 changed files with 2 additions and 2 deletions
|
@ -70,9 +70,9 @@ double RtTimeStamp()
|
|||
{
|
||||
#ifdef WIN32
|
||||
ULONGLONG TickCount;
|
||||
// DWORD_PTR oldmask = ::SetThreadAffinityMask(::GetCurrentThread(), 0);
|
||||
DWORD_PTR oldmask = ::SetThreadAffinityMask(::GetCurrentThread(), 0);
|
||||
QueryPerformanceCounter((LARGE_INTEGER*)&TickCount);
|
||||
// ::SetThreadAffinityMask(::GetCurrentThread(), oldmask);
|
||||
::SetThreadAffinityMask(::GetCurrentThread(), oldmask);
|
||||
return (1000.0 * TickCount)/RtTicksPerSec;
|
||||
#else
|
||||
struct timeval tv;
|
||||
|
|
Loading…
Reference in a new issue