Rewrite Time.cpp