diff options
Diffstat (limited to 'src/ToolBox/superpmi/superpmi-shared/simpletimer.cpp')
-rw-r--r-- | src/ToolBox/superpmi/superpmi-shared/simpletimer.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shared/simpletimer.cpp b/src/ToolBox/superpmi/superpmi-shared/simpletimer.cpp index e9c76339bc..6fa1f8ea89 100644 --- a/src/ToolBox/superpmi/superpmi-shared/simpletimer.cpp +++ b/src/ToolBox/superpmi/superpmi-shared/simpletimer.cpp @@ -10,10 +10,10 @@ SimpleTimer::SimpleTimer() { start.QuadPart = 0; - stop.QuadPart = 0; + stop.QuadPart = 0; BOOL retVal = ::QueryPerformanceFrequency(&proc_freq); - if(retVal == FALSE) + if (retVal == FALSE) { LogDebug("SimpleTimer::SimpleTimer unable to QPF. error was 0x%08x", ::GetLastError()); ::__debugbreak(); @@ -27,7 +27,7 @@ SimpleTimer::~SimpleTimer() void SimpleTimer::Start() { BOOL retVal = ::QueryPerformanceCounter(&start); - if(retVal == FALSE) + if (retVal == FALSE) { LogDebug("SimpleTimer::Start unable to QPC. error was 0x%08x", ::GetLastError()); ::__debugbreak(); @@ -37,7 +37,7 @@ void SimpleTimer::Start() void SimpleTimer::Stop() { BOOL retVal = ::QueryPerformanceCounter(&stop); - if(retVal == FALSE) + if (retVal == FALSE) { LogDebug("SimpleTimer::Stop unable to QPC. error was 0x%08x", ::GetLastError()); ::__debugbreak(); @@ -46,11 +46,10 @@ void SimpleTimer::Stop() double SimpleTimer::GetMilliseconds() { - return GetSeconds()*1000.0; + return GetSeconds() * 1000.0; } double SimpleTimer::GetSeconds() { return ((stop.QuadPart - start.QuadPart) / (double)proc_freq.QuadPart); } - |