Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
inspector: fixed V8InspectorClient::currentTimeMS method
On inspector side inside V8 we assume that this method should
return number of ms since epoch.
  • Loading branch information
alexkozy committed Jul 21, 2018
commit 31a01fb0dcb158cc5e3967dc4fe02e802cb1859f
4 changes: 1 addition & 3 deletions src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ static int StartDebugSignalHandler() {
#endif // _WIN32


// Used in NodeInspectorClient::currentTimeMS() below.
const int NANOS_PER_MSEC = 1000000;
const int CONTEXT_GROUP_ID = 1;

class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
Expand Down Expand Up @@ -593,7 +591,7 @@ class NodeInspectorClient : public V8InspectorClient {
}

double currentTimeMS() override {
return uv_hrtime() * 1.0 / NANOS_PER_MSEC;
return env_->isolate_data()->platform()->CurrentClockTimeMillis();
}

node::Environment* env_;
Expand Down