Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Datsenko <dats@chromium.org>2017-08-30 03:46:24 +0300
committerMichaƫl Zasso <targos@protonmail.com>2017-12-06 14:52:07 +0300
commita1ed29b1c63675420832048d330b78c18d0edd77 (patch)
treeb26487e25cd4966d3a9405f252064433ccbb11de /src/node_platform.cc
parenta7c5fe9ba63f9d4fd9451c55a2dcd8f1728c2c33 (diff)
src: implement getting current time in NodePlatform
It is required by a change in V8. Refs: https://chromium-review.googlesource.com/c/v8/v8/+/598666 PR-URL: https://github.com/nodejs/node/pull/16271 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'src/node_platform.cc')
-rw-r--r--src/node_platform.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_platform.cc b/src/node_platform.cc
index 65d1ef6c5df..d96db086925 100644
--- a/src/node_platform.cc
+++ b/src/node_platform.cc
@@ -279,6 +279,10 @@ double NodePlatform::MonotonicallyIncreasingTime() {
return uv_hrtime() / 1e9;
}
+double NodePlatform::CurrentClockTimeMillis() {
+ return SystemClockTimeMillis();
+}
+
TracingController* NodePlatform::GetTracingController() {
return tracing_controller_.get();
}