Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

time_debug.c File Reference

#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)


Function Documentation

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 }

void time_debug unsigned char *  string,
struct timeval  time
 

Definition at line 52 of file time_debug.c.

References time.

00052                                                            {
00053   rtl_printf("%s: %d s %d us\n",string, (int)time.tv_sec, (int)time.tv_usec);
00054   return;
00055 }


Generated on Wed Jan 14 12:59:15 2004 for RTL-lwIP-0.4 by doxygen 1.3.4