debug stat report boot time

This commit is contained in:
云风
2013-12-17 11:24:30 +08:00
parent b6f57aee0b
commit 2bf65084cd
3 changed files with 44 additions and 5 deletions

View File

@@ -28,10 +28,6 @@ current_time(struct timespec *ti) {
void
diff_time(struct timespec *ti, uint32_t *sec, uint32_t *nsec) {
if (sec == NULL) {
current_time(ti);
return;
}
struct timespec end;
current_time(&end);
int diffsec = end.tv_sec - ti->tv_sec;