Changed Linux timestamp behavior. Explicitly using CLOCK_MONOTONIC_RAW and CLOCK_REALTIME

This commit is contained in:
Matt Hill
2015-03-16 22:12:37 -04:00
parent f7ed84d5db
commit 39c4756ce7
20 changed files with 120 additions and 79 deletions

View File

@@ -47,7 +47,7 @@ namespace alpr
cout << "PlateLines findLines" << endl;
timespec startTime;
getTime(&startTime);
getTimeMonotonic(&startTime);
// Ignore input images that are pure white or pure black
@@ -129,7 +129,7 @@ namespace alpr
if (pipelineData->config->debugTiming)
{
timespec endTime;
getTime(&endTime);
getTimeMonotonic(&endTime);
cout << "Plate Lines Time: " << diffclock(startTime, endTime) << "ms." << endl;
}