Skip to content

Commit

Permalink
fix cputimer on Mac OS
Browse files Browse the repository at this point in the history
  • Loading branch information
patflick committed Feb 22, 2016
1 parent b558559 commit 8950f39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppi_networkit/src/cputimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class CPUTimer {
host_get_clock_service(mach_host_self(), SYSTEM_CLOCK, &cclock);
clock_get_time(cclock, &mts);
mach_port_deallocate(mach_task_self(), cclock);
ts->tv_sec = mts.tv_sec;
ts->tv_nsec = mts.tv_nsec;
ts.tv_sec = mts.tv_sec;
ts.tv_nsec = mts.tv_nsec;
#else
clock_gettime(CLOCK_MONOTONIC, &ts);
#endif
Expand Down

0 comments on commit 8950f39

Please sign in to comment.