My c++ codes for time pass