Skip to content

Commit c5eaeec

Browse files
Cong Liurogerwang
authored andcommitted
fixed process.uptime()
fixed nwjs/nw.js#5481
1 parent a6a5055 commit c5eaeec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4928,6 +4928,7 @@ NODE_EXTERN void g_call_tick_callback(node::Environment* env) {
49284928

49294929
// copied beginning of Start() until v8::Initialize()
49304930
NODE_EXTERN void g_setup_nwnode(int argc, char** argv, bool worker) {
4931+
node::prog_start_time = static_cast<double>(uv_now(uv_default_loop()));
49314932
node::node_is_initialized = true;
49324933
node::node_is_nwjs = true;
49334934
node::node_isolate = v8::Isolate::GetCurrent();

0 commit comments

Comments
 (0)