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:
wdbee 2010-06-22 12:10:11 +00:00
parent a6e23a4cb3
commit c2376e7f29

View file

@ -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;