bufferkdtree (C sources)
C source code for the Python bufferkdtree implementation
 All Classes Files Functions Variables Typedefs Macros
Classes | Macros | Typedefs | Functions
timing.h File Reference
#include <stdlib.h>
#include <assert.h>
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <pthread.h>
#include <sched.h>
#include <errno.h>
#include <string.h>
#include <ctype.h>
Include dependency graph for timing.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  timer_struct
 

Macros

#define TIMING   0
 
#define INIT_MY_TIMER   init_my_timer
 
#define START_MY_TIMER   start_my_timer
 
#define STOP_MY_TIMER   stop_my_timer
 
#define GET_MY_TIMER   get_my_timer
 
#define DEFINE_TIMER(num)
 
#define DECLARE_TIMER(num)
 
#define START_TIMER(num)
 
#define STOP_TIMER(num)
 
#define GET_TIME(num)
 
#define RESET_TIMER(num)
 

Typedefs

typedef struct timer_struct TIMER
 

Functions

long get_system_time_in_microseconds (void)
 
void init_my_timer (TIMER *timer)
 
void start_my_timer (TIMER *timer)
 
void stop_my_timer (TIMER *timer)
 
double get_my_timer (TIMER *timer)
 

Macro Definition Documentation

#define DECLARE_TIMER (   num)
#define DEFINE_TIMER (   num)
#define GET_MY_TIMER   get_my_timer
#define GET_TIME (   num)
#define INIT_MY_TIMER   init_my_timer
#define RESET_TIMER (   num)
#define START_MY_TIMER   start_my_timer
#define START_TIMER (   num)
#define STOP_MY_TIMER   stop_my_timer
#define STOP_TIMER (   num)
#define TIMING   0

Typedef Documentation

typedef struct timer_struct TIMER

Function Documentation

double get_my_timer ( TIMER timer)

Returns the time measured by a given timer

Parameters
*timerPointer to timer struct instance
Returns
Passed time in seconds
long get_system_time_in_microseconds ( void  )

Helper method for computing the current time (w.r.t to an offset).

Returns
System in in microseconds
void init_my_timer ( TIMER timer)

Initializes a timer

Parameters
*timerPointer to timer struct instance
void start_my_timer ( TIMER timer)

Starts a given timer

Parameters
*timerPointer to timer struct instance
void stop_my_timer ( TIMER timer)

Stops a given timer

Parameters
*timerPointer to timer struct instance