| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f6051f9 commit 8db43b1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -734,6 +734,9 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv, | |||
| 734 | 734 | // Make sure InitializeNodeWithArgs() is called only once. | |
| 735 | 735 | CHECK(!init_called.exchange(true)); | |
| 736 | 736 | ||
| 737 | + // Initialize node_start_time to get relative uptime. | ||
| 738 | + per_process::node_start_time = uv_hrtime(); | ||
| 739 | + | ||
| 737 | 740 | // Register built-in modules | |
| 738 | 741 | binding::RegisterBuiltinModules(); | |
| 739 | 742 | ||
@@ -913,7 +916,6 @@ void Init(int* argc, | |||
| 913 | 916 | InitializationResult InitializeOncePerProcess(int argc, char** argv) { | |
| 914 | 917 | atexit(ResetStdio); | |
| 915 | 918 | PlatformInit(); | |
| 916 | - per_process::node_start_time = uv_hrtime(); | ||
| 917 | 919 | ||
| 918 | 920 | CHECK_GT(argc, 0); | |
| 919 | 921 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments