a timer I used for survival mode in a game written in C#.