<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/85507>85507</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[OpenMP] Use hardware clock to measure time instead of gettimeofday() on additional archs
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
brad0
</td>
</tr>
</table>
<pre>
Looking at the archs with current OpenMP support I would guess most of them would be able to provide a hardware clock.
https://github.com/llvm/llvm-project/blob/a5a79938e1f5004e3819b41d80c6464a2d8ed135/openmp/runtime/src/kmp_lock.cpp#L2642-L2655
KMP_ARCH_LOONGARCH64
KMP_ARCH_MIPS64
KMP_ARCH_PPC64
KMP_ARCH_RISCV64
KMP_ARCH_S390X
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUksFu3CwUhZ8Gb1BGGIzHXniRP5H_Rp00o0StuosucG3TwcYCnFHevrKnVavMqhtA5wh0z-GDGG0_ITZE_kfkfQZLGnxoVADDMuXNe3Pw_mSnnkKiaUAKQQ-Rnm0aqF5CwCnRpxmnxyONyzz7kOgDPfvFGdovGCMdfUzUd-vd8ZehkIJySJOnc_Bv1iAFOkAwZwhItfP6tCPsnrDbyzqkNEcibglvCW97m4ZF7bQfCW-de_u93czB_0CdCG-V84rwFiTs61pUmHeSsQJFldeqyE3FdFmUBXBTocmFJLz1M07jTHgblinZEQlvY9CEt6dxft0G0vNMuDjwsuA3B15K-feEnx-Pr7fPd59eD09PX_5fT2XxwXl8OL5cicfj3ZX2_PBy9-1KfRE1-56ZRpha1JBhk-9zJvf7osizoelEpaSG2pRdpTuQoDuRl0ZpBG0Mssw2nPGCibxkFS9YvjOq1hUKUeaqNAIVKRiOYN1urXLnQ5_ZGBdsKinZPnOg0MWNEc4nPNPNJJyvyIRmq18tfSQFczam-OeVZJPb4LpAQuQ9_Rrxw2-vJIwIcQlI1_apnWJCMCs3PaZV8p2Bd8IrwmvqJwrG2GT9BO4CZLYE1_wzJ1uKSHi7pfwZAAD__xpy9sQ">