add start time

This commit is contained in:
云风
2012-08-13 10:34:51 +08:00
parent d7227cfd1a
commit 7f98adaf0d
3 changed files with 17 additions and 0 deletions

View File

@@ -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;
}