Graphviz  2.41.20170921.2350
Macros | Typedefs | Functions
timing.c File Reference
#include <unistd.h>
#include <sys/types.h>
#include <sys/times.h>
#include <sys/param.h>
Include dependency graph for timing.c:

Go to the source code of this file.

Macros

#define HZ   60
 
#define GET_TIME(S)   times(&(S))
 
#define DIFF_IN_SECS(S, T)   ((S.tms_utime + S.tms_stime - T.tms_utime - T.tms_stime)/(double)HZ)
 

Typedefs

typedef struct tms mytime_t
 

Functions

void start_timer (void)
 
double elapsed_sec (void)
 

Macro Definition Documentation

#define DIFF_IN_SECS (   S,
 
)    ((S.tms_utime + S.tms_stime - T.tms_utime - T.tms_stime)/(double)HZ)

Definition at line 28 of file timing.c.

Referenced by elapsed_sec().

#define GET_TIME (   S)    times(&(S))

Definition at line 27 of file timing.c.

Referenced by elapsed_sec(), and start_timer().

#define HZ   60

Definition at line 24 of file timing.c.

Typedef Documentation

typedef struct tms mytime_t

Definition at line 26 of file timing.c.

Function Documentation

double elapsed_sec ( void  )
void start_timer ( void  )