made tons of stuff lol
This commit is contained in:
parent
36f0dae96b
commit
54c3acf092
16 changed files with 450 additions and 94 deletions
|
|
@ -1 +1,11 @@
|
|||
#include "program.h"
|
||||
|
||||
long long calibrate() {
|
||||
unsigned long long start = __rdtsc();
|
||||
struct timespec ts;
|
||||
ts.tv_sec = 0;
|
||||
ts.tv_nsec = 100000000L; // 0.1 seconds
|
||||
nanosleep(&ts, NULL);
|
||||
return (__rdtsc() - start) * 10;
|
||||
}
|
||||
const long long enginend::CPUCLOCK=calibrate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue