An extensible data structure for massive streaming graphs
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
timer.h File Reference

Data Structures

struct  stats

Functions

void init_timer (void)
 Initialize the system timer.
double timer_getres (void)
 Get the resolution of the system clock.
void tic (void)
 Start the timer.
double toc (void)
 Stop the timer and return the time taken.
void stats_tic (char *)
 Start recording performance statistics from hardware counters.
void stats_toc (void)
 End recording performance statistics.
void print_stats ()
 Print out performance counters to stdout.

Variables

struct stats stats_tic_data stats_toc_data

Function Documentation

void init_timer ( void  )

Initialize the system timer.

void print_stats ( )

Print out performance counters to stdout.

void stats_tic ( char *  c)

Start recording performance statistics from hardware counters.

Parameters
cString describing statistics to measure
void stats_toc ( void  )

End recording performance statistics.

void tic ( void  )

Start the timer.

References timer().

Referenced by load_graph_and_action_stream(), and main().

double timer_getres ( void  )

Get the resolution of the system clock.

Returns
Clock Resolution
double toc ( void  )

Stop the timer and return the time taken.

Returns
Time since last tic()

References timer().

Referenced by load_graph_and_action_stream(), and main().

Variable Documentation

struct stats stats_tic_data stats_toc_data

 

comments powered by Disqus