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 f6051f9 commit 8db43b1Copy full SHA for 8db43b1
src/node.cc
@@ -734,6 +734,9 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
734
// Make sure InitializeNodeWithArgs() is called only once.
735
CHECK(!init_called.exchange(true));
736
737
+ // Initialize node_start_time to get relative uptime.
738
+ per_process::node_start_time = uv_hrtime();
739
+
740
// Register built-in modules
741
binding::RegisterBuiltinModules();
742
@@ -913,7 +916,6 @@ void Init(int* argc,
913
916
InitializationResult InitializeOncePerProcess(int argc, char** argv) {
914
917
atexit(ResetStdio);
915
918
PlatformInit();
- per_process::node_start_time = uv_hrtime();
919
920
CHECK_GT(argc, 0);
921
0 commit comments