Initializing help system before first use

problem.getdtime

problem.getdtime


Purpose
Retrieve a double precision time stamp in seconds
Synopsis
seconds = problem.getdtime ()
Argument
seconds 
Address of double precision variable of the time in seconds.
Example
The following example measures the elapsed time to read a problem:
start = p.getdtime ()
p.read ("NewMat","")
finish = p.getdtime ()
print ("Elapsed time to read = {0} secs".format (finish - start))

Further information

The timing information returned is provided by the operating system and is typically accurate to no more than 1 millisecond.

The clock is not initialized when Xpress Nonlinear starts, so it is necessary to save an initial time and then measure all times by difference.