Toast++  1.0.2 (r.539)
Forward and inverse modelling in optical tomography
timing.h
1 #ifndef __TIMING_H
2 #define __TIMING_H
3 
4 MATHLIB double tic();
5 MATHLIB double toc();
6 MATHLIB double toc(double tic);
7 
8 MATHLIB double walltic();
9 MATHLIB double walltoc();
10 MATHLIB double walltoc(double walltic);
11 
12 #ifdef DBG_TIMING
13 #define TIC (tic())
14 #define TOC(t) (t=toc())
15 #define TOCADD(t) (t+=toc())
16 #else
17 #define TIC
18 #define TOC(t)
19 #define TOCADD(t)
20 #endif
21 
22 #endif // !__TIMING_H