mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
get now before starttime would be better
This commit is contained in:
@@ -13,5 +13,7 @@ skynet.start(function()
|
||||
maxclient = max_client,
|
||||
})
|
||||
|
||||
print(skynet.time())
|
||||
|
||||
skynet.exit()
|
||||
end)
|
||||
|
||||
@@ -248,7 +248,7 @@ function skynet.starttime()
|
||||
end
|
||||
|
||||
function skynet.time()
|
||||
return skynet.starttime() + skynet.now()/100
|
||||
return skynet.now()/100 + skynet.starttime() -- get now first would be better
|
||||
end
|
||||
|
||||
function skynet.exit()
|
||||
|
||||
Reference in New Issue
Block a user