Revert "Move some time functions to a cpp file"

This reverts commit d1cd0cd6a81b8838a81a61410b94ab3d47a7673f.