Index: src/platform-posix.cc |
diff --git a/src/platform-posix.cc b/src/platform-posix.cc |
index 58d0a2478dbf564effd2b81403fd5455ce262c52..dd6b77c265464f1c62c3e7c391db8bc5d8514737 100644 |
--- a/src/platform-posix.cc |
+++ b/src/platform-posix.cc |
@@ -313,19 +313,7 @@ int OS::GetUserTime(uint32_t* secs, uint32_t* usecs) { |
double OS::TimeCurrentMillis() { |
- struct timeval tv; |
- if (gettimeofday(&tv, NULL) < 0) return 0.0; |
- return (static_cast<double>(tv.tv_sec) * 1000) + |
- (static_cast<double>(tv.tv_usec) / 1000); |
-} |
- |
- |
-int64_t OS::Ticks() { |
- // gettimeofday has microsecond resolution. |
- struct timeval tv; |
- if (gettimeofday(&tv, NULL) < 0) |
- return 0; |
- return (static_cast<int64_t>(tv.tv_sec) * 1000000) + tv.tv_usec; |
+ return Time::Now().ToJsTime(); |
} |