#include <iostream>
#include <time.h>
using namespace std;
int main () {
for(int i = 0; i < 2 ; i++) {
int first_time = time(NULL);
while(time(NULL) <= first_time) {}
int first_clock = clock();
first_time = time(NULL);
while(time(NULL) <= first_time) {}
int second_time = time(NULL);
int second_clock = clock();
cout << "Actual clocks per second = " << (second_clock - first_clock)/(second_time - first_time) << "\n";
cout << "CLOCKS_PER_SEC = " << CLOCKS_PER_SEC << "\n";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dGltZS5oPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluICgpIHsKCiAgICBmb3IoaW50IGkgPSAwOyBpIDwgMiA7IGkrKykgewoKICAgICAgICBpbnQgZmlyc3RfdGltZSA9IHRpbWUoTlVMTCk7CiAgICAgICAgd2hpbGUodGltZShOVUxMKSA8PSBmaXJzdF90aW1lKSB7fQogICAgICAgIGludCBmaXJzdF9jbG9jayA9IGNsb2NrKCk7CiAgICAgICAgZmlyc3RfdGltZSA9IHRpbWUoTlVMTCk7CiAgICAgICAgd2hpbGUodGltZShOVUxMKSA8PSBmaXJzdF90aW1lKSB7fQoKICAgICAgICBpbnQgc2Vjb25kX3RpbWUgPSB0aW1lKE5VTEwpOwogICAgICAgIGludCBzZWNvbmRfY2xvY2sgPSBjbG9jaygpOwoKICAgICAgICBjb3V0IDw8ICJBY3R1YWwgY2xvY2tzIHBlciBzZWNvbmQgPSAiIDw8IChzZWNvbmRfY2xvY2sgLSBmaXJzdF9jbG9jaykvKHNlY29uZF90aW1lIC0gZmlyc3RfdGltZSkgPDwgIlxuIjsKCiAgICAgICAgY291dCA8PCAiQ0xPQ0tTX1BFUl9TRUMgPSAiIDw8IENMT0NLU19QRVJfU0VDIDw8ICJcbiI7CgogICAgfQoKICAgIHJldHVybiAwOwoKfQ==