Omit calculation of on-stack variable address.

This commit is contained in:
Bartosz Taudul 2019-10-20 19:42:29 +02:00
parent 5c92eae3ed
commit 30fc2f02ab

View File

@ -109,7 +109,7 @@ public:
return std::chrono::duration_cast<std::chrono::nanoseconds>( std::chrono::high_resolution_clock::now().time_since_epoch() ).count();
# endif
# elif defined _WIN32 || defined __CYGWIN__
unsigned int dontcare;
static unsigned int dontcare;
const auto t = int64_t( __rdtscp( &dontcare ) );
return t;
# elif defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64