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)*24*3600; display elapsed;
but how can i retrive the cpu time spent in gams by my code?
Thanks in advance,
Luca
GAMS CPU time
Re: GAMS CPU time
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
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
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Re: GAMS CPU time
Luca,
CPU time make little sense in today's multi-threading world, so reporting CPU time has gone out of fashion.
-Michael
CPU time make little sense in today's multi-threading world, so reporting CPU time has gone out of fashion.
-Michael
Re: GAMS CPU time
usually I test code with single thread and I report this CPU time.
otherwise what you suggest to do ?
Thanks,
Luca
otherwise what you suggest to do ?
Thanks,
Luca
Re: GAMS CPU time
Take an empty/idle machine and give it all the juice/cores it got (I would not do hyperthreading) and report wall time.
-Michael
-Michael