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