File: zfpTimer.h

package info (click to toggle)
zfp 1.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,744 kB
  • sloc: cpp: 20,656; ansic: 18,871; pascal: 1,231; f90: 907; python: 255; makefile: 183; sh: 79; fortran: 70
file content (24 lines) | stat: -rw-r--r-- 361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef ZFP_TIMER_H
#define ZFP_TIMER_H

#if defined(__unix__) || defined(_WIN32)
  #include <time.h>
#elif defined(__MACH__)
  #include <mach/mach_time.h>
#endif

typedef struct zfp_timer zfp_timer;

zfp_timer*
zfp_timer_alloc();

void
zfp_timer_free(zfp_timer* timer);

int
zfp_timer_start(zfp_timer* timer);

double
zfp_timer_stop(zfp_timer* timer);

#endif