Luca
1
Dear all,
I know in gams the elapsed time can be retrive by the couple of instructions:
scalar starttime; starttime = jnow;
…
scalar elapsed; elapsed = (jnow - starttime)243600; display elapsed;
but how can i retrive the cpu time spent in gams by my code?
Thanks in advance,
Luca
Renger
2
Hi Luca
There is an option “profile” to have a closer look at the time used by Gams. You can find more information Profile option and here McCarl.
Hope this helps
Cheers
Renger
Luca,
CPU time make little sense in today’s multi-threading world, so reporting CPU time has gone out of fashion.
-Michael
Luca
4
usually I test code with single thread and I report this CPU time.
otherwise what you suggest to do ?
Thanks,
Luca
Take an empty/idle machine and give it all the juice/cores it got (I would not do hyperthreading) and report wall time.
-Michael