Skip to content

Commit

Permalink
Error check clock_gettime
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Jul 25, 2016
1 parent a309ac0 commit dc1db45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/usage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Wall GetWall() {
typedef struct timespec Wall;
Wall GetWall() {
Wall ret;
clock_gettime(CLOCK_MONOTONIC, &ret);
UTIL_THROW_IF(-1 == clock_gettime(CLOCK_MONOTONIC, &ret), ErrnoException, "Could not get wall time");
return ret;
}
#endif
Expand Down

0 comments on commit dc1db45

Please sign in to comment.