playing with Over clocking
This commit is contained in:
parent
bfbc70a88a
commit
7270ac5463
|
@ -44,6 +44,7 @@ void CSystemTimer::Reset()
|
||||||
|
|
||||||
void CSystemTimer::SetTimer(TimerType Type, uint32_t Cycles, bool bRelative)
|
void CSystemTimer::SetTimer(TimerType Type, uint32_t Cycles, bool bRelative)
|
||||||
{
|
{
|
||||||
|
Cycles *= 4;
|
||||||
if (Type >= MaxTimer || Type == UnknownTimer)
|
if (Type >= MaxTimer || Type == UnknownTimer)
|
||||||
{
|
{
|
||||||
g_Notify->BreakPoint(__FILE__, __LINE__);
|
g_Notify->BreakPoint(__FILE__, __LINE__);
|
||||||
|
@ -90,7 +91,7 @@ uint32_t CSystemTimer::GetTimer(TimerType Type)
|
||||||
{
|
{
|
||||||
return 0x7FFFFFFF;
|
return 0x7FFFFFFF;
|
||||||
}
|
}
|
||||||
return (uint32_t)CyclesToTimer;
|
return (uint32_t)(CyclesToTimer / 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSystemTimer::StopTimer(TimerType Type)
|
void CSystemTimer::StopTimer(TimerType Type)
|
||||||
|
|
Loading…
Reference in New Issue