This commit is contained in:
Cloud Wu
2014-06-26 14:04:57 +08:00
parent be1db23ea3
commit ceeb9912bf
2 changed files with 1 additions and 3 deletions

View File

@@ -13,7 +13,5 @@ skynet.start(function()
maxclient = max_client,
})
print(skynet.time())
skynet.exit()
end)

View File

@@ -254,7 +254,7 @@ gettime() {
#else
struct timeval tv;
gettimeofday(&tv, NULL);
t = (uint64_t)ti.tv_sec * 100;
t = (uint64_t)tv.tv_sec * 100;
t += tv.tv_usec / 10000;
#endif
return t;