]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/cpu-timer.hh
74433a3e186526e5f390994de59a31b0d980699c
[lilypond.git] / flower / include / cpu-timer.hh
1 /*
2   cpu-timer.hh -- declare Cpu_timer
3
4   source file of the Flower Library
5
6   (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef CPU_TIMER_HH
11 #define CPU_TIMER_HH
12
13 #include <time.h>
14 #include "real.hh"
15
16 class Cpu_timer {
17   clock_t start_clock_;
18 public:
19   Cpu_timer ();
20   void restart ();
21   Real read ();
22 };
23
24 #endif // CPU_TIMER_HH