#include <iostream>
#include<ctime>
int main() {
using namespace std;
cout << "enter the delay time,in seconds:";
float secs;
cin >> secs;
clock_t delay = secs*CLOCKS_PER_SEC;//转变为计时器延迟的时间
cout << "staring/a/n";
clock_t start = clock();
while (clock() - start < delay);
cout << "done\a\n";
return 0;
}