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