From: Yuquan DU on
Hi, all.

As we know, we can obtain the running time using the following procedure

start_time=cputime;
end_time=cputime;
run_time=end_time-start_time;

However, when we turn to the multi-CPUs computer and run some parallized program, e.g. CPLEX, can the statement "cputime" still give the right parallized running time?


PS: For my problem (run on a 4-cpu personal computer), the log file of CPLEX told me that the running time is 7200s, but the "cputime" command 22000s. So I doubt that "cputime" command give us the sum-up total time, but not the parallization cpu time.

Does there exist some statement which can return the parallization cpu time?