summaryrefslogtreecommitdiffstats
path: root/test/timer.h
blob: 272f69d56d5d51c332105ef6edcd441747e290eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef TIMER_H
#define TIMER_H

#include <sys/time.h>

typedef struct {
    struct timeval  start;
    long            seconds;
    long            useconds;
} Timer;

Timer * timer_new       (void);
void    timer_destroy   (Timer *t);
void    timer_start     (Timer *t);
void    timer_stop      (Timer *t);

#endif