在我公司用Kotlin编写的android应用程序中,我有2个Api调用,我想测量它们的执行时间。Status.ShowMaintenance) DO SOME IRELEVANT CODE }} 我想测量configurationRepository.refresh()和categoryRepository.refresh()应用程序接口<em
在macos下有没有办法测量线程的执行时间?我知道有getrusage函数,但它应该只测量进程时间(在linux下有测量线程时间的扩展,但不幸的是我在MacOs下工作)。我需要测量线程的时间(用户和内核空间中处理时间的总和)。确切的类比是GetThreadTimes under Windows (https://docs.microsoft.com/en-us/