Prev Index Next

Digital Clock

Timer example

Timer example

Notes: This program implements a digital clock. It starts a timer upon creation and every time that timer goes off it gets the current time and updates the screen. The original program had a 1 sec timer but I decided to change it to the lowest value (10 ms) and added the milliseconds to the time.

Description: A screenshot of a program in front of a window containing code. The program displays the clock in a digital format with red letters on a white background. The time is shown as hours:minutes:seconds:milliseconds

Prev Index Next