X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Fcpu-timer.cc;h=f0e428a59829d01e487b418ee41a36a82318c21b;hb=d53a0536f899eae5f2e9c50e7b2e2b5636f5b026;hp=6a0a4236bf2772b36ee6f27978207b13003d0ad6;hpb=8aad615ea7bb31f49a0c2afc21eea5ff5de20437;p=lilypond.git diff --git a/flower/cpu-timer.cc b/flower/cpu-timer.cc index 6a0a4236bf..f0e428a598 100644 --- a/flower/cpu-timer.cc +++ b/flower/cpu-timer.cc @@ -3,23 +3,23 @@ source file of the Flower Library - (c) 1997--1999 Han-Wen Nienhuys + (c) 1997--2006 Han-Wen Nienhuys */ #include "cpu-timer.hh" + #include // nextstep #ifndef CLOCKS_PER_SEC #ifdef CLK_TCK -#define CLOCKS_PER_SEC CLK_TCK +#define CLOCKS_PER_SEC CLK_TCK #elif defined _SC_CLK_TCK -#define CLOCKS_PER_SEC sysconf(_SC_CLK_TCK) +#define CLOCKS_PER_SEC sysconf (_SC_CLK_TCK) #else #error cannot determine CLOCKS_PER_SEC #endif #endif - Cpu_timer::Cpu_timer () { restart (); @@ -34,5 +34,5 @@ Real Cpu_timer::read () { clock_t stop = clock (); - return (stop-start_clock_)/Real(CLOCKS_PER_SEC); + return (stop - start_clock_) / Real (CLOCKS_PER_SEC); }