At this tutorial, using microbit, we present the functions included into a stopwatch! Actually, it is a time counter with few more functionalities :)
Download project source code from GitHub: microbit-Stopwatch.hex
Download project source code from GitHub: microbit-Stopwatch.hex