ILOG CPLEX 11.0 User's Manual > Advanced Programming Techniques > Parallel Optimizers > Clock Settings and Time Measurement |
Clock Settings and Time Measurement |
INDEX PREVIOUS NEXT |
On most platforms, ILOG CPLEX offers two ways of measuring time: CPU time and wall-clock time. However, on Microsoft Windows platforms, only wall-clock time is available. By default, when ILOG CPLEX is running sequentially, CPU time is reported on platforms that support it. In contrast, when ILOG CPLEX is running parallel algorithms, wall-clock time is the default on all platforms.
On platforms that support both types of clock, you can choose the type of clock by setting the clocktype parameter to a value different from the default 0 (zero).
IloCplex::setParam(
ClockType
,
i)
in the C++ API;
IloCplex.setParam(ClockType,
i)
in the Java API;
Cplex.SetParam(ClockType,
i)
in the .NET API.
CPXsetintparam(env,
CPX_PARAM_CLOCKTYPE
,
i)
.
set clocktype
i.
Replace the i with the value 1(one) to specify CPU time or 2 to specify wall-clock time.
Copyright © 1987-2007 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |