GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — inspector: fixed V8InspectorClient::currentTimeMS · nodejs/node@311ec12

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • inspector_agent.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/inspector_agent.cc‎

Copy file name to clipboardExpand all lines: src/inspector_agent.cc
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ static int StartDebugSignalHandler() {
187187
#endif // _WIN32
188188

189189

190-
// Used in NodeInspectorClient::currentTimeMS() below.
191-
const int NANOS_PER_MSEC = 1000000;
192190
const int CONTEXT_GROUP_ID = 1;
193191

194192
class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
@@ -593,7 +591,7 @@ class NodeInspectorClient : public V8InspectorClient {
593591
}
594592

595593
double currentTimeMS() override {
596-
return uv_hrtime() * 1.0 / NANOS_PER_MSEC;
594+
return env_->isolate_data()->platform()->CurrentClockTimeMillis();
597595
}
598596

599597
node::Environment* env_;

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.