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, maxclient = max_client,
}) })
print(skynet.time())
skynet.exit() skynet.exit()
end) end)

View File

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