Re: Report on include file use
- Posted by DB James <larches at com??st.net> Aug 06, 2007
- 543 views
Jason Gade wrote: > > DB James wrote: > > > > Here are the results of checking on the use of include files. > > > > Timing test to detect any "penalty" connected with include files. > > Used time{} and Verne Tice's hrtime.e library ( hrtime() ). > > <SNIP> > > > > --Quark > > Are you timing within your test program or external to it? > > Because include files are parsed at the same time the main program is. If you > are timing from within your test program then you are only testing the time > of your test program, not on the load time of any sources (including include > files). I am assuming you are referring to the load time of an include file (and I wasn't real confident). The rest of the data should be OK. Here is that part of the code.
t=time() tt=hrtime() include all.e -- all Eu includes except safe.e printf(fn,"E_file load: time(): %f hrtime(): %f\n", {time()-t,hrtime()-tt})
If you're right, then all I was measuring was the (very short) scan time of the included file :( Have to try another way... Thanks. --Quark