blob: 5dd4dcb79f56182bb9b01907e28e8fe694b563e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/**
* @file timer.h
* @author Gertjan van den Burg
* @date August, 2013
* @brief Header file for timer.c
*
* @details
* Function declaration for timer function used to measure computation time.
*
*/
#ifndef GENSVM_TIMER_H
#define GENSVM_TIMER_H
// includes
#include "gensvm_globals.h"
/// Timer macro for easily recording time
#define Timer(spec) clock_gettime(CLOCK_MONOTONIC_RAW, &spec)
// function declarations
double gensvm_elapsed_time(struct timespec *start, struct timespec *stop);
#endif
|