add skynet.stat 'time'

This commit is contained in:
Cloud Wu
2016-10-26 18:01:22 +08:00
parent 249ffb9362
commit ffe5de468e
2 changed files with 23 additions and 2 deletions

11
test/testendless.lua Normal file
View File

@@ -0,0 +1,11 @@
local skynet = require "skynet"
skynet.start(function()
for i = 1, 1000000000 do -- very long loop
if i%100000000 == 0 then
print("Endless = ", skynet.stat "endless")
print("Cost time = ", skynet.stat "time")
end
end
skynet.exit()
end)