CLOCK (located in \TOOLKIT\SAMPLES\OS2\TIMESERV) demonstrates how to use and implement window timers and system-resource timers. This sample program displays both an analog and digital clock. To simulate elapsed seconds, the main PM thread repeatedly sets a one-second window timer that updates the current time.
CLOCK features an audible and visual alarm that you can set. When the time expires, the sample makes use of the DOS timer services and notifies the user by sounding an alarm and displaying a message box.