hrtimer.cpp: fix Win32 DLL-Import build (#425)
PerformanceCounterFrequency is used independently of CRYPTOPP_IMPORTS.pull/242/merge
parent
de1270656c
commit
77bea3f630
|
|
@ -30,8 +30,6 @@
|
|||
|
||||
NAMESPACE_BEGIN(CryptoPP)
|
||||
|
||||
#ifndef CRYPTOPP_IMPORTS
|
||||
|
||||
#if defined(CRYPTOPP_WIN32_AVAILABLE)
|
||||
static TimerWord InitializePerformanceCounterFrequency()
|
||||
{
|
||||
|
|
@ -48,6 +46,8 @@ inline TimerWord PerformanceCounterFrequency()
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef CRYPTOPP_IMPORTS
|
||||
|
||||
double TimerBase::ConvertTo(TimerWord t, Unit unit)
|
||||
{
|
||||
static unsigned long unitsPerSecondTable[] = {1, 1000, 1000*1000, 1000*1000*1000};
|
||||
|
|
|
|||
Loading…
Reference in New Issue