Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed May 30, 2024
1 parent ea8f7bc commit 27819e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/utilcode/stresslog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ thread_local bool t_triedToCreateThreadStressLog;
be good enough.
*/
__forceinline
#ifdef TARGET_WINDOWS
#ifdef HOST_WINDOWS
__declspec(naked)
#else
__attribute__((naked))
#endif
uint64_t getTimeStamp() {
STATIC_CONTRACT_LEAF;

#ifdef TARGET_WINDOWS
#ifdef HOST_WINDOWS
__asm {
RDTSC // read time stamp counter
ret
Expand Down

0 comments on commit 27819e3

Please sign in to comment.