HI ^^


I'm writing a program to reset a RTC frequency like below,
But I think it's doesn't work right...


I was set a frequency of 170 in one second, but when I executing any
game in my computer, It doesn't faster that I expected...


Is there anyone who know what the problem is? ^^


Thanks for advance... ^^


int RTTControl()
{
bool bResult;


bResult = InitializeWinIo();


if (bResult)
{
bool success = false;


unsigned lowCount,highCount;
unsigned long count;


count = 1193280 / 170;
lowCount = count % 256;
highCount = count / 256;


success = SetPortVal( 0x43, 0x34, 1 );
if ( success == false )
return 0;


success = SetPortVal( 0x40, lowCount, 1 );
if ( success == false )
return 0;


success = SetPortVal( 0x40, highCount, 1 );
if ( success == false )
return 0;


ShutdownWinIo();
return 1;
}
else
{
return 0;
}