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:
-rw-r--r--src/node_platform.cc4
-rw-r--r--src/node_platform.h1
2 files changed, 5 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();
}
diff --git a/src/node_platform.h b/src/node_platform.h
index e5253cac10c..b7546057871 100644
--- a/src/node_platform.h
+++ b/src/node_platform.h
@@ -127,6 +127,7 @@ class NodePlatform : public MultiIsolatePlatform {
double delay_in_seconds) override;
bool IdleTasksEnabled(v8::Isolate* isolate) override;
double MonotonicallyIncreasingTime() override;
+ double CurrentClockTimeMillis() override;
v8::TracingController* GetTracingController() override;
void FlushForegroundTasks(v8::Isolate* isolate);