mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Omit calculation of on-stack variable address.
This commit is contained in:
parent
5c92eae3ed
commit
30fc2f02ab
@ -109,7 +109,7 @@ public:
|
|||||||
return std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::high_resolution_clock::now().time_since_epoch() ).count();
|
return std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::high_resolution_clock::now().time_since_epoch() ).count();
|
||||||
# endif
|
# endif
|
||||||
# elif defined _WIN32 || defined __CYGWIN__
|
# elif defined _WIN32 || defined __CYGWIN__
|
||||||
unsigned int dontcare;
|
static unsigned int dontcare;
|
||||||
const auto t = int64_t( __rdtscp( &dontcare ) );
|
const auto t = int64_t( __rdtscp( &dontcare ) );
|
||||||
return t;
|
return t;
|
||||||
# elif defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64
|
# elif defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user