An extensible data structure for massive streaming graphs
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
timer.c File Reference
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "timer.h"

Macros

#define _XOPEN_SOURCE   600

Functions

void init_timer (void)
 Initialize the system timer.
double timer (void)
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 *c)
 Start recording performance statistics from hardware counters.
void stats_toc (void)
 End recording performance statistics.
void print_stats (void)
 Print out performance counters to stdout.

Macro Definition Documentation

#define _XOPEN_SOURCE   600

Function Documentation

void init_timer ( void  )

Initialize the system timer.

void print_stats ( void  )

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 ( void  )

Referenced by tic(), and toc().

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().

 

comments powered by Disqus