perflab added

This commit is contained in:
2025-04-12 10:18:45 +08:00
parent a04c35be04
commit 4ea99d81a7
51 changed files with 350295 additions and 0 deletions

12
perflab/matrix/clock.h Normal file
View File

@ -0,0 +1,12 @@
/* Routines for using cycle counter */
/* Start the counter */
void start_counter(void);
/* Get # cycles since counter started. Returns 1e20 if detect timing anomaly */
double get_counter(void);
void make_CPU_busy(void);
double mhz(int verbose);
double CPU_Factor(void);
//double GetCpuClock(void);