#include "arch/time_debug.h"Include dependency graph for time_debug.c:
Go to the source code of this file.
Functions | |
| void | time_debug (unsigned char *string, struct timeval time) |
| void | period_debug (unsigned char *string, struct timeval begin, struct timeval end) |
|
||||||||||||||||
|
Definition at line 57 of file time_debug.c. References time, timeval::tv_sec, and timeval::tv_usec.
00057 {
00058 long diff, time;
00059
00060 if((diff = end.tv_sec - begin.tv_sec) > 0)
00061 time = ((diff * 1000000) - begin.tv_usec) + end.tv_usec;
00062 else
00063 time = end.tv_usec - begin.tv_usec;
00064
00065 rtl_printf("%s: begin %d s %d us end %d s %d us Time %d us\n",string, (int)begin.tv_sec, (int)begin.tv_usec, (int)end.tv_sec, (int)end.tv_usec, (int)time);
00066
00067 return;
00068 }
|
|
||||||||||||
|
Definition at line 52 of file time_debug.c. References time.
|
1.3.4