Hello,

I posted a question about timing some time a go and got an answer; but let down 
for a while because other problems required my attention. So, I need a simple 
func to get the current time; mainly to benchmark various implementation 
choices, possibly for other needs.

The timer module brings the opposite feature, namely it triggers an event after 
a given elapsed time, while my need is the get the time when a given event 
occurs...

Using a system command (time on unix) is not possible in the general case, 
because it can only globally measure the running time of the app, while
(1) I have no a priori idea of the relative cost of init tasks such as feeding 
test data structures,
(2) there are numerous test funcs to run (at least 45 in this case) in a row, 
every running time beeing collected, then post-processed.

So, what I need and hope exists is the simplest possible func returning the 
current time as a real value (at best with unit=second). I guess this must be 
obtained from the system (but not the time command), possibly from a C routine. 
Pointers welcome :-)


Denis
________________________________

vit esse estrany ☣

spir.wikidot.com
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to