mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 06:36:50 +08:00
Changed Linux timestamp behavior. Explicitly using CLOCK_MONOTONIC_RAW and CLOCK_REALTIME
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user