mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-08 02:50:06 +08:00
Fixed bug where epoch ms time was not being returned
This commit is contained in:
@@ -149,7 +149,9 @@ long getEpochTime()
|
|||||||
{
|
{
|
||||||
struct timeval tp;
|
struct timeval tp;
|
||||||
gettimeofday(&tp, NULL);
|
gettimeofday(&tp, NULL);
|
||||||
long int ms = tp.tv_sec * 1000 + tp.tv_usec / 1000;
|
long ms = tp.tv_sec * 1000 + tp.tv_usec / 1000;
|
||||||
|
|
||||||
|
return ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user