Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: gin/v8_platform.cc

Issue 634523002: Add implementation of MonotonicallyIncreasingTime to Gin's V8 platform implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gin/public/v8_platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/v8_platform.cc
diff --git a/gin/v8_platform.cc b/gin/v8_platform.cc
index d50ff24f8bf49d7aa2c947e6f4bb20a1cbaee6ab..ec163ded8d1444a06f18aa0164df754186633f3f 100644
--- a/gin/v8_platform.cc
+++ b/gin/v8_platform.cc
@@ -39,4 +39,9 @@ void V8Platform::CallOnForegroundThread(v8::Isolate* isolate, v8::Task* task) {
FROM_HERE, base::Bind(&v8::Task::Run, base::Owned(task)));
}
+double V8Platform::MonotonicallyIncreasingTime() {
+ return base::TimeTicks::Now().ToInternalValue() /
+ static_cast<double>(base::Time::kMicrosecondsPerSecond);
+}
+
} // namespace gin
« no previous file with comments | « gin/public/v8_platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698