Hello I made a simple timer that should work, but doesn't. I keep getting 1 second as the time. Even if I leave it on for a minute, it said it took 1 second. Have a look at my code.Can anyone help me? Thanks!Code:#include <iostream> #include <time.h> using namespace std; int main() { time_t start, end; double timediff; char answer, answer2; while(1) { cout << "Welcome to the timer, type s to start and stop time\n"; cin >> answer; if (answer == 's') { time (&start); cout << "Timer started"; cin >> answer2; } if (answer2 == 's') { time(&end); cout << "Timer ended\n"; timediff = difftime(end, start); cout << "That took " << difftime << " seconds\n"; } } system("PAUSE"); return 0; }