X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Fcpu-timer.cc;h=37f735ffe9a24a245126494c25ae256420e805b2;hb=d664910e595a6af588a44028a6b0771ab2c8f4b9;hp=6a0a4236bf2772b36ee6f27978207b13003d0ad6;hpb=8aad615ea7bb31f49a0c2afc21eea5ff5de20437;p=lilypond.git diff --git a/flower/cpu-timer.cc b/flower/cpu-timer.cc index 6a0a4236bf..37f735ffe9 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--2007 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); }