X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/d47d44b2ed067c834ef210ad544512e7581a1c8e..147d0e88c4da14c801d15e0875bedb474180bea2:/timer.h diff --git a/timer.h b/timer.h index 6ae15eb..0e8c7d9 100644 --- a/timer.h +++ b/timer.h @@ -66,12 +66,12 @@ public: void start() { - getrusage(RUSAGE_SELF, &before); + getrusage(RUSAGE_SELF, &before); } void stop() { - getrusage(RUSAGE_SELF, &after); + getrusage(RUSAGE_SELF, &after); difference = difference + ((after.ru_utime + after.ru_stime) - (before.ru_utime + before.ru_stime)); }