TempleOSCDV3.11.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:46:29 +02:00
1 parent f8c05f98f4
commit ed64d7e3b8
549 files changed
+10643 -12855

No files matched your search

+2 -4
View File
@@ -9,7 +9,6 @@ U0 TimeIns()
{
I64 i,start,end,overhead_time,test_time;
F64 d=5.0;
Bool old_preempt=Preempt;
//Measure Loop Overhead
start=GetTSC;
@@ -20,16 +19,15 @@ U0 TimeIns()
start=GetTSC;
for (i=0;i<SAMPLE_SIZE;i++) {
#exe {OTraceMask(0b10000000000);OTrace(ON);};
#exe {PassTrace(0b10000000000);};
//Time these instructions
d*=1.00001;
#exe {OTrace(OFF);};
#exe {PassTrace(0);};
}
end=GetTSC;
test_time=end-start;
"Measured Cycles:%10.5f\n",ToF64(test_time-overhead_time)/SAMPLE_SIZE;
Preempt(old_preempt);
}
TimeIns;