| 645 | } |
| 646 | |
| 647 | uint64_t bthread_cpu_clock_ns(void) { |
| 648 | bthread::TaskGroup* g = bthread::tls_task_group; |
| 649 | if (g != NULL && !g->is_current_main_task()) { |
| 650 | return g->current_task_cpu_clock_ns(); |
| 651 | } |
| 652 | return 0; |
| 653 | } |
| 654 | |
| 655 | int bthread_set_span_funcs(bthread_create_span_fn create_fn, |
| 656 | bthread_destroy_span_fn destroy_fn, |
nothing calls this directly
no test coverage detected