Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Nov 12, 2023
1 parent c42fcfe commit 1d34461
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/usage_clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace util {
#if defined(__linux__)
#include <sys/resource.h>

static time_point user_cpu_clock::now() noexcept {
user_cpu_clock::time_point user_cpu_clock::now() noexcept {
struct rusage usage;
int err = ::getrusage(RUSAGE_THREAD, &usage);
if (err == 0) {
Expand All @@ -17,7 +17,7 @@ namespace util {
return time_point();
}

static time_point kernel_cpu_clock::now() noexcept {
kernel_cpu_clock::time_point kernel_cpu_clock::now() noexcept {
struct rusage usage;
int err = ::getrusage(RUSAGE_THREAD, &usage);
if (err == 0) {
Expand Down Expand Up @@ -69,7 +69,7 @@ namespace util {
#elif defined(_WIN32)
#include "platform.hpp"

static time_point user_cpu_clock::now() noexcept {
user_cpu_clock::time_point user_cpu_clock::now() noexcept {
FILETIME creation_time;
FILETIME exit_time;
FILETIME kernel_time;
Expand All @@ -82,7 +82,7 @@ namespace util {
return time_point();
}

static time_point kernel_cpu_clock::now() noexcept {
kernel_cpu_clock::time_point kernel_cpu_clock::now() noexcept {
FILETIME creation_time;
FILETIME exit_time;
FILETIME kernel_time;
Expand Down

0 comments on commit 1d34461

Please sign in to comment.