Removing locatime so this function compiles again.
I don't think it has any practical use anyway.
This commit is contained in:
parent
3013a83f2f
commit
fad1faddae
1 changed files with 2 additions and 2 deletions
|
@ -227,8 +227,8 @@ uint64_t OS_Unix::get_system_time_msec() const {
|
|||
struct timeval tv_now;
|
||||
gettimeofday(&tv_now, NULL);
|
||||
//localtime(&tv_now.tv_usec);
|
||||
localtime((const long *)&tv_now.tv_usec);
|
||||
uint64_t msec = tv_now.tv_usec/1000;
|
||||
//localtime((const long *)&tv_now.tv_usec);
|
||||
uint64_t msec = uint64_t(tv_now.tv_sec)*1000+tv_now.tv_usec/1000;
|
||||
return msec;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue