#include <time.h>
//Timer
time_t TimeStamp;
tm *nun;
int now;
int before;
/////////////TIMER//////////////////////////////////////////////////////////////
TimeStamp = time(0);
nun = localtime(&TimeStamp);
now = nun->tm_sec;
before = nun->tm_sec;
////////////////////////////////////////////////////////////////////////////////
while(true)
{
//Time the timer!!!
if(now >= before+1)
{
before=now;
//Print time
cout<<before<<endl;
///////////////////////End Timer//////////////////////////////////
}
TimeStamp = time(0);
nun = localtime(&TimeStamp);
now = nun->tm_sec;
if(now == 0)
before=0;
}
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.