diff options
author | Sergei Datsenko <dats@chromium.org> | 2017-08-30 03:46:24 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2017-12-06 14:52:07 +0300 |
commit | a1ed29b1c63675420832048d330b78c18d0edd77 (patch) | |
tree | b26487e25cd4966d3a9405f252064433ccbb11de /src/node_platform.cc | |
parent | a7c5fe9ba63f9d4fd9451c55a2dcd8f1728c2c33 (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.cc | 4 |
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(); } |