mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12: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,
|
maxclient = max_client,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
print(skynet.time())
|
||||||
|
|
||||||
skynet.exit()
|
skynet.exit()
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ function skynet.starttime()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function skynet.time()
|
function skynet.time()
|
||||||
return skynet.starttime() + skynet.now()/100
|
return skynet.now()/100 + skynet.starttime() -- get now first would be better
|
||||||
end
|
end
|
||||||
|
|
||||||
function skynet.exit()
|
function skynet.exit()
|
||||||
|
|||||||
Reference in New Issue
Block a user