mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-08 00:41:37 +08:00
Changed Linux timestamp behavior. Explicitly using CLOCK_MONOTONIC_RAW and CLOCK_REALTIME
This commit is contained in:
@@ -121,7 +121,7 @@ namespace alpr
|
||||
//Mat img_equalized = equalizeBrightness(img_gray);
|
||||
|
||||
timespec startTime;
|
||||
getTime(&startTime);
|
||||
getTimeMonotonic(&startTime);
|
||||
|
||||
vector<Mat> thresholds;
|
||||
|
||||
@@ -160,7 +160,7 @@ namespace alpr
|
||||
if (config->debugTiming)
|
||||
{
|
||||
timespec endTime;
|
||||
getTime(&endTime);
|
||||
getTimeMonotonic(&endTime);
|
||||
cout << " -- Produce Threshold Time: " << diffclock(startTime, endTime) << "ms." << endl;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user