Skip to content

Commit

Permalink
Don't double usertime.
Browse files Browse the repository at this point in the history
Fixes issue #1.
  • Loading branch information
sethml committed Nov 11, 2011
1 parent f6626a6 commit feda733
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions getrusage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ double getusertime(void) {

tim = ru.ru_stime;
double t=(double)tim.tv_sec + (double)tim.tv_usec / 1000000.0;
tim=ru.ru_stime;
t+=(double)tim.tv_sec + (double)tim.tv_usec / 1000000.0;
return t;
}

Expand Down

0 comments on commit feda733

Please sign in to comment.