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));
}