aboutsummaryrefslogtreecommitdiff
path: root/include/gensvm_timer.h
blob: 4c541b3f0a2e257659defde89ba997c34a3c5dfa (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 gensvm_timer.h
 * @author Gertjan van den Burg
 * @date August, 2013
 * @brief Header file for gensvm_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