more specifically can you please explain the working of following lines:
clock_t delay = secs * CLOCKS_PER_SEC;
clock_t start = clock() ;
while ( clock() - start < delay )
and the significance of semicolon in the next line.
#include<iostream>
#include<ctime>
int main () {
using namespace std;
cout << "Enter the delay time in sec: ";
float secs;
cin >> secs;
clock_t delay = secs * CLOCKS_PER_SEC;
cout << "starting \a\n" ;
clock_t start = clock() ;
while (clock() - start < delay )
;
cout << "dont \a\n" ;
return 0;
}