We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76a6592 commit 311ec12Copy full SHA for 311ec12
src/inspector_agent.cc
@@ -187,8 +187,6 @@ static int StartDebugSignalHandler() {
187
#endif // _WIN32
188
189
190
-// Used in NodeInspectorClient::currentTimeMS() below.
191
-const int NANOS_PER_MSEC = 1000000;
192
const int CONTEXT_GROUP_ID = 1;
193
194
class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
@@ -593,7 +591,7 @@ class NodeInspectorClient : public V8InspectorClient {
593
591
}
594
592
595
double currentTimeMS() override {
596
- return uv_hrtime() * 1.0 / NANOS_PER_MSEC;
+ return env_->isolate_data()->platform()->CurrentClockTimeMillis();
597
598
599
node::Environment* env_;
0 commit comments