GenSVM
gensvm_timer.h
Go to the documentation of this file.
1 
30 #ifndef GENSVM_TIMER_H
31 #define GENSVM_TIMER_H
32 
33 // includes
34 #include "gensvm_globals.h"
35 
37 #define Timer(spec) clock_gettime(CLOCK_MONOTONIC_RAW, &spec)
38 
39 // function declarations
40 double gensvm_elapsed_time(struct timespec *start, struct timespec *stop);
41 
42 #endif
double gensvm_elapsed_time(struct timespec *start, struct timespec *stop)
Calculate the time between two time recordings.
Definition: gensvm_timer.c:58
Global definitions.