diff --git a/src/util/usage_clock.cpp b/src/util/usage_clock.cpp index 5b829b5b..fd132277 100644 --- a/src/util/usage_clock.cpp +++ b/src/util/usage_clock.cpp @@ -33,8 +33,8 @@ namespace NUClear { namespace util { cpu_clock::time_point cpu_clock::now() noexcept { - timespec ts{}; - clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); + ::timespec ts{}; + ::clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); return time_point(std::chrono::seconds(ts.tv_sec) + std::chrono::nanoseconds(ts.tv_nsec)); }