XSLPgetdtime
PurposeRetrieve a double precision time stamp in secondsSynopsisint XPRS_CC XSLPgetdtime(XSLPprob Prob, double *Seconds);Arguments
Prob The current SLP problem. Seconds Address of double precision variable of the time in seconds.ExampleThe following example measures the elapsed time to read a problem:double Start, Finish; XSLPgetdtime(Prob, &Start); XSLPreadprob(Prob, "NewMat",""); XSLPgetdtime(Prob, &Finish); printf("\nElapsed time to read = %lg secs",Finish-Start);Further informationIf Seconds is NULL, then the information will not be returned.
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-SLP starts, so it is necessary to save an initial time and then measure all times by difference.
Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.