time representation in c++