DragonNest/Common/EngineUtil/TimeImp.cpp
Cussrro 47f7895977 Revert "修复编码问题"
This reverts commit 9e69c01767.
2024-12-21 10:04:04 +08:00

18 lines
No EOL
483 B
C++

#include "StdAfx.h"
#include "TimeImp.h"
#ifdef _DEBUG
#define new new(_NORMAL_BLOCK,__FILE__,__LINE__)
#endif
float TimeImp::GetTimeVelocity( float fVelocity, LOCAL_TIME LocalTime, LOCAL_TIME PrevTime )
{
float fValue = ( LocalTime - PrevTime ) / TimeImp::m_fCriterionTime;
return powf( fVelocity, fValue );
}
float TimeImp::GetTimeVelocity( float fVelocity, float fDelta )
{
float fValue = ( fDelta * 1000.f ) / TimeImp::m_fCriterionTime;
return powf( fVelocity, fValue );
}