Commit 131163af authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlm: Use RT rather than monotonic clock - fixes #1288

Patch by Brian C. Wiles
parent aa31448f
...@@ -1049,7 +1049,11 @@ static int64_t vlm_Date(void) ...@@ -1049,7 +1049,11 @@ static int64_t vlm_Date(void)
ftime( &tm ); ftime( &tm );
return ((int64_t)tm.time) * 1000000 + ((int64_t)tm.millitm) * 1000; return ((int64_t)tm.time) * 1000000 + ((int64_t)tm.millitm) * 1000;
#else #else
return mdate(); struct timeval tv_date;
/* gettimeofday() cannot fail given &tv_date is a valid address */
(void)gettimeofday( &tv_date, NULL );
return (mtime_t) tv_date.tv_sec * 1000000 + (mtime_t) tv_date.tv_usec;
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment