This exercise is mostly about time durations but could be used for a general times exercise.
Sarah is a time-keeper. She's actually the best there is. When asked by kids what a time-keeper does, she loves to show them a jar full of white sand. See, she says: "I'm keeping time safe!"
Her actual job is not that romantic but still a very interesting and fulfilling job to her. She flies to sport events around the world with her bag full of timing equipment and measure the times of every athlete.
In this exercise you will write some functions for the new timing software Sarah has asked you to create for her. There can't be any mistakes, or the next world record might not be valid if a bug is found in the software after! Are you ready to bear the responsibility?
Data coming from time keeping hardware is usually a time stamp (time, datetime or even with time zone). It has a high precision of usually up to 1 millisecond sometimes even 100 microseconds. Every hardware device has an internal clock that must be synchronized to all the other devices.
These are example tasks that fit the time-keeper exercise:
start time
(timestamp), from
& to
(durations), detection
(timestamp).+4.843
is the difference
to the leader (athlete in first position).