diff options
| author | Juan Linietsky | 2016-01-10 18:24:55 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-01-10 18:24:55 -0300 |
| commit | a120c66f98586138fc61fa6f243cb071d60111bc (patch) | |
| tree | 61deb7f8b8443bee3e028ad9ae347496eea4e458 /drivers/unix/os_unix.cpp | |
| parent | 5b088b41b3147cc19f2d5bc56b762bd5988bc484 (diff) | |
| download | godot-a120c66f98586138fc61fa6f243cb071d60111bc.tar.gz godot-a120c66f98586138fc61fa6f243cb071d60111bc.tar.zst godot-a120c66f98586138fc61fa6f243cb071d60111bc.zip | |
Diffstat (limited to 'drivers/unix/os_unix.cpp')
| -rw-r--r-- | drivers/unix/os_unix.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index bdf7daf79..405d84f0f 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -233,13 +233,12 @@ uint64_t OS_Unix::get_unix_time() const { return time(NULL); }; -uint64_t OS_Unix::get_system_time_msec() const { +uint64_t OS_Unix::get_system_time_secs() const { struct timeval tv_now; gettimeofday(&tv_now, NULL); //localtime(&tv_now.tv_usec); //localtime((const long *)&tv_now.tv_usec); - uint64_t msec = uint64_t(tv_now.tv_sec)*1000+tv_now.tv_usec/1000; - return msec; + return uint64_t(tv_now.tv_sec); } |
