mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
add start time
This commit is contained in:
@@ -356,6 +356,12 @@ skynet_command(struct skynet_context * context, const char * cmd , const char *
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (strcmp(cmd,"STARTTIME") == 0) {
|
||||
uint32_t sec = skynet_gettime_fixsec();
|
||||
sprintf(context->result,"%u",sec);
|
||||
return context->result;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user