| Availability | All terminals | 
| Description | Returns the time that is left of the time that was specified with the StartTimer() function. The time is specified in units of 20 milliseconds. | 
| Syntax | int TimerValue( void ); | 
| Arguments | None | 
| Returns | Remaining timer value in units of 20 milliseconds. For example, if TimerValue() returns 5, 100 milliseconds will elapse before the timer is finished. | 
| Remarks | The timer can be started with the StartTimer() function. | 
| Example | 
#include <stdio.h> #include "lib.h" void main( void ) { for(;;) { printf("\nWait for 5 sec"); StartTimer( 5 * 50 ); while( !EndTimer()) { printf("\nTime left %d s", TimerValue()/50); Sound( TSTANDARD, VSTANDARD, SMEDIUM, 0); Delay( 50 ); } printf("\nDone"); ResetKey(); while( !kbhit()) Idle(); } }  |