FIXME(gejun): CLOCK_THREAD_CPUTIME_ID behaves differently in different glibc. To avoid potential bug, disable ThreadNow() always. Returns true if ThreadNow() is supported on this system.
| 634 | // glibc. To avoid potential bug, disable ThreadNow() always. |
| 635 | // Returns true if ThreadNow() is supported on this system. |
| 636 | static bool IsThreadNowSupported() { |
| 637 | return false; |
| 638 | } |
| 639 | |
| 640 | // Returns thread-specific CPU-time on systems that support this feature. |
| 641 | // Needs to be guarded with a call to IsThreadNowSupported(). Use this timer |