#include /*秒表*/#include #include #include using namespace std;int main(void){SYSTEMTIME now;time_t s1,s2;BYTE bKeys[256]; GetLocalTime(&now);s1=time(NULL);s2=time(NULL);start:cout #include using namespace std;int main(void) {
time_t first, second;
cout<<"Please press Enter to start!"<<endl; getchar(); first = time( NULL );
cout<<"Please press Enter again to stop!"<<endl; getchar(); second = time( NULL );
cout<<"The during time is:"<<difftime(second,first)<<" seconds\n"<<endl;
return 0; }