WCB Clock : Visual C++
The following screenshot describes the user interface of this program. This clock also makes the tick-tock sound which is usually made by the wall clocks.
How does it work?
This program is based on the use of the Windows Timer. It checks the system time every second (i.e. after every 1000 milliseconds) using the function GetLocalTime() and then displays the same using the three hands of the clock. The tick-tock sound is played using the function PlaySound() which is called every second. The sound comes from a .wav file. If you wish, you can turn the sound OFF by pressing any key on the keyboard. Similarly, to turn it ON again, just press a key on the keyboard.
The following video shows WCB Clock in action :