aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/os_unix.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-09-10 20:31:34 -0300
committerJuan Linietsky2015-09-10 20:31:34 -0300
commitc7426717d38de36795906cb4f7c2c0297f88a7b3 (patch)
treee3f347224f1357997bddd469a85a4c302f768b61 /drivers/unix/os_unix.cpp
parent83b69f8fefcc91a1d71b726e7a02623b21386f2b (diff)
parent59e1ad27731e66c58a3d5ee9d783eac74a1d48d9 (diff)
downloadgodot-c7426717d38de36795906cb4f7c2c0297f88a7b3.tar.gz
godot-c7426717d38de36795906cb4f7c2c0297f88a7b3.tar.zst
godot-c7426717d38de36795906cb4f7c2c0297f88a7b3.zip
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'drivers/unix/os_unix.cpp')
-rw-r--r--drivers/unix/os_unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp
index 05af7ee90..96f90e6be 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -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;
}