#include #include #include #include class Timer { int segundos; public: //Segundos especificados como una cadena Timer (char *t) {segundos=atoi(t);} //Segundos especificados como enteros Timer (int t) {segundos=t;} //Tiempo especificados en minutos y segundos Timer (int min, int seg) {segundos=min *60+seg;} void run (void); }; void Timer::run (void) { clock_t t1,t2; int a,b; t1=t2=clock()/CLK_TCK; cout<<"Tardara: "<>str; Timer b(str); b.run(); cout<<"Dar tiempo en minutos y segundos"; cin>>min>>seg; Timer c(min, seg); c.run(); return 0; }