diff options
author | Kenneth Heafield <github@kheafield.com> | 2022-07-03 19:18:27 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2022-07-03 19:18:27 +0300 |
commit | 568df4a23827f409f132146e93ab0f7c191296df (patch) | |
tree | 6c07d924cd3c97f40ba6f19826fed4eb6591d732 | |
parent | fee7b058bf3f96d570c852340729c0d4d4df2c25 (diff) |
return 0.0 for other platforms in usage fixes #391
-rw-r--r-- | util/usage.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/usage.cc b/util/usage.cc index ccc6285..79d61c2 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 } |