From 568df4a23827f409f132146e93ab0f7c191296df Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Sun, 3 Jul 2022 17:18:27 +0100 Subject: [PATCH] return 0.0 for other platforms in usage fixes #391 --- util/usage.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/usage.cc b/util/usage.cc index ccc62850..79d61c21 100644 --- a/util/usage.cc +++ b/util/usage.cc @@ -180,7 +180,9 @@ double ThreadTime() { mach_msg_type_number_t t_info_count = TASK_BASIC_INFO_COUNT; task_info(mach_task_self(), TASK_BASIC_INFO, (task_info_t)&t_info, &t_info_count); - return 0.0; + return 0.0; // TODO +#else + return 0.0; // Weird platforms. #endif }