#include <iostream.h>
#include<conio.h>
class Timer
{
private:
unsigned int time;
public:
Timer():time(0) {}
int get_time()
{
return time;
}
void operator ++()
{
++time;
}
};
void main()
{
clrscr();
Timer t1 ,t2;
cout <<"\nt1 = " <<t1.get_time();
cout <<"\nt2 = " <<t2.get_time();
++t1;
++t2;
++t2;
cout <<"\nt1 = " <<t1.get_time();
cout <<"\nt2 = "<<t2.get_time()<<endl;
getch();
}