Changeset 468 for OCO/trunk/drv16/timer.cpp
- Timestamp:
- Nov 4, 2009, 4:21:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OCO/trunk/drv16/timer.cpp
r418 r468 159 159 static ULONG hookHandle; 160 160 161 //_asm int 3; 162 dprintf(("TIMER::TIMER Ms:%d IRQ%d", uTargetMSec,pIRQ->GetIRQLevel())); 161 163 // Set initial state - "not functional". 162 164 _eState = TIMER_Disabled; … … 394 396 uMSec = _uInterval_mSec; 395 397 _uCumulativeError += _uIntervalErr_uSec; 396 if (_uCumulativeError >= 1000) { 397 ++uMSec; 398 _uCumulativeError -= 1000; 398 if (_uCumulativeError >= 1000) 399 { 400 //PS++ begin 401 while ( _uCumulativeError >= 1000 ) 402 { 403 ++uMSec; 404 _uCumulativeError -= 1000; 405 } 406 //PS End 399 407 } 400 408 _ulTime += uMSec;
Note:
See TracChangeset
for help on using the changeset viewer.