Moved timespec functions to their own file.