erbrowser/src/timingInfo.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int timing_display_time_elapsed (void)
int timing_init (void)
int timing_destroy (void)


Function Documentation

int timing_destroy ( void   ) 

Definition at line 54 of file timingInfo.c.

00055 {
00056 #ifdef TIMING_INFORMATION_ENABLED
00057     BR_LOGPRINTF("destroy timer");
00058 
00059     if (theTimer)
00060     {
00061         g_timer_destroy(theTimer);
00062     }
00063 #endif //TIMING_INFORMATION_ENABLED
00064     return 0;
00065 }

int timing_display_time_elapsed ( void   ) 

Definition at line 67 of file timingInfo.c.

00068 {
00069 #ifdef TIMING_INFORMATION_ENABLED
00070     gulong  microseconds = 0;
00071     gdouble seconds = 0;
00072 
00073     if (theTimer)
00074     {
00075         seconds = g_timer_elapsed(theTimer, &microseconds);
00076         BR_LOGPRINTF("######### time elapsed %f sec - %u usec ###########", seconds, microseconds);
00077         BR_LOGPRINTF("######### time elapsed %f sec ###########", seconds);
00078 
00079         //restart the time 
00080         g_timer_start(theTimer);
00081     }
00082 
00083 #endif //TIMING_INFORMATION_ENABLED
00084     return 0;
00085 
00086 }

int timing_init ( void   ) 

Definition at line 38 of file timingInfo.c.

00039 {
00040 #ifdef TIMING_INFORMATION_ENABLED
00041     BR_LOGPRINTF("create timer");
00042     if (theTimer)
00043     {
00044         BR_ERRORPRINTF("create timer already called");
00045     }
00046     else
00047     {
00048         theTimer = g_timer_new();
00049     }
00050 #endif //TIMING_INFORMATION_ENABLED
00051     return 0;
00052 }


Generated on Sun Dec 14 17:14:56 2008 by  doxygen 1.5.6