]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/cpu-timer.hh
055b6aad0416e6f1101f4a959f50e7e078d5fae8
[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--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef CPU_TIMER_HH
11 #define CPU_TIMER_HH
12
13 #include <ctime>
14
15 #include "real.hh"
16
17 class Cpu_timer {
18   clock_t start_clock_;
19 public:
20   Cpu_timer ();
21   void restart ();
22   Real read ();
23 };
24
25 #endif // CPU_TIMER_HH