Move time related functions into their own source file
Typo