Skip to content

Commit

Permalink
return 0.0 for other platforms in usage fixes #391
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Jul 3, 2022
1 parent fee7b05 commit 568df4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/usage.cc
Expand Up @@ -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
}

Expand Down

0 comments on commit 568df4a

Please sign in to comment.