Originally posted by: Trino
Hi, I'm running my model in a PC with a processor of 4 cores and I tried to use the function clock(), as usual, to get the elapsed time, but when cplex run with more than 1 thread the time calculated using clock() is not right. I imagine the cause is that clock() returns the number of clocks that the program have used, but it consider the clocks of all 4 cores, so I end up with a value which I can't properly be used to calculate the time.
Is there a way to get the real elapsed time, or at least an approximation like cplex do in its log even if when there is more than 1 thread?
Thanks,
Bruno.
#CPLEXOptimizers#DecisionOptimization