made tons of stuff lol

This commit is contained in:
kin fuyuki 2025-12-21 03:01:29 -03:00
commit 54c3acf092
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
16 changed files with 450 additions and 94 deletions

View file

@ -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();