Simple stopwatch written in C