TempleOSCD_150720.ISO
This commit is contained in:
1 parent
401601816c
commit
f8c05f98f4
554 files changed
+26046
-24853
No files matched your search
+4
-4
@@ -9,7 +9,7 @@ U0 TimeIns()
|
||||
{
|
||||
I64 i,start,end,overhead_time,test_time;
|
||||
F64 d=5.0;
|
||||
Bool old_preempt=Preempt(OFF);
|
||||
Bool old_preempt=Preempt;
|
||||
|
||||
//Measure Loop Overhead
|
||||
start=GetTSC;
|
||||
@@ -20,10 +20,10 @@ U0 TimeIns()
|
||||
|
||||
start=GetTSC;
|
||||
for (i=0;i<SAMPLE_SIZE;i++) {
|
||||
#exe {OTraceMask(0b10000000000);OTrace(ON);};
|
||||
//Time these instructions
|
||||
#exe {OTraceMask(0b10000000000);OTrace(ON);};
|
||||
//Time these instructions
|
||||
d*=1.00001;
|
||||
#exe {OTrace(OFF);};
|
||||
#exe {OTrace(OFF);};
|
||||
}
|
||||
end=GetTSC;
|
||||
test_time=end-start;
|
||||
|
||||
Reference in new issue
Block a user