This example VI shows you how to design a countdown timer that configures for a broad range of time periods (from seconds to years) and how to convert conveniently between a variety of time units. The Get Date/Time in Seconds function sets and monitors the time settings. Additionally, the Read Characters From File VI and the Write To Text File VI allows you to save the timer settings before the application is closed so they can be restored later. This VI monitors and tracks the progress of experiments or tests that are conducted over a long period of time (over several hours or days, for example).
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.