|
SCIP-SDP
4.0.0
|
methods for clocks and timing More...
Go to the source code of this file.
Functions | |
| SCIP_RETCODE | SDPIclockCreate (SDPI_CLOCK **clck) |
| void | SDPIclockFree (SDPI_CLOCK **clck) |
| void | SDPIclockSetType (SDPI_CLOCK *clck, SDPI_CLOCKTYPE clocktype) |
| void | SDPIclockStart (SDPI_CLOCK *clck) |
| void | SDPIclockStop (SDPI_CLOCK *clck) |
| SCIP_Real | SDPIclockGetTime (SDPI_CLOCK *clck) |
methods for clocks and timing
This is a modified version of clock.c in SCIP in order to make it independent from SCIP_SET. Note that here the time is restarted every time SDPIclockStart() is called.
Definition in file sdpiclock.h.
| SCIP_RETCODE SDPIclockCreate | ( | SDPI_CLOCK ** | clck | ) |
creates a clock and initializes it
| clck | pointer to clock timer |
Definition at line 96 of file sdpiclock.c.
References SDPI_CLOCKTYPE_WALL.
Referenced by SCIPsdpiClone(), and SCIPsdpiCreate().
| void SDPIclockFree | ( | SDPI_CLOCK ** | clck | ) |
frees a clock
| clck | pointer to clock timer |
Definition at line 111 of file sdpiclock.c.
Referenced by SCIPsdpiFree().
| void SDPIclockSetType | ( | SDPI_CLOCK * | clck, |
| SDPI_CLOCKTYPE | clocktype | ||
| ) |
sets the type of the clock
| clck | clock timer |
| clocktype | type of clock |
Definition at line 121 of file sdpiclock.c.
References SDPI_Clock::clocktype.
Referenced by SCIPsdpiClockSetType().
| void SDPIclockStart | ( | SDPI_CLOCK * | clck | ) |
starts measurement of time in the given clock, update the clock's type if it is bound to the default type
starts measurement of time in the given clock
| clck | clock timer |
Definition at line 134 of file sdpiclock.c.
References SDPI_Clock::clocktype, SDPI_Clock::cpuclock, SDPI_Clock::data, SDPI_Clock::nruns, SDPI_CLOCKTYPE_CPU, SDPI_CLOCKTYPE_WALL, SDPI_WallClock::sec, SDPI_WallClock::usec, SDPI_CPUClock::user, and SDPI_Clock::wallclock.
Referenced by SCIPsdpiSolve().
| void SDPIclockStop | ( | SDPI_CLOCK * | clck | ) |
stops measurement of time in the given clock
| clck | clock timer |
Definition at line 192 of file sdpiclock.c.
References SDPI_Clock::clocktype, SDPI_Clock::cpuclock, SDPI_Clock::data, SDPI_Clock::nruns, SDPI_CLOCKTYPE_CPU, SDPI_CLOCKTYPE_WALL, SDPI_WallClock::sec, SDPI_WallClock::usec, SDPI_CPUClock::user, and SDPI_Clock::wallclock.
Referenced by SCIPsdpiSolve().
| SCIP_Real SDPIclockGetTime | ( | SDPI_CLOCK * | clck | ) |
gets the used time of this clock in seconds
| clck | clock timer |
Definition at line 250 of file sdpiclock.c.
References SDPI_Clock::clocktype, SDPI_Clock::cpuclock, cputime2sec(), SDPI_Clock::data, SDPI_Clock::nruns, SDPI_CLOCKTYPE_CPU, SDPI_CLOCKTYPE_WALL, SDPI_WallClock::sec, SDPI_WallClock::usec, SDPI_CPUClock::user, SDPI_Clock::wallclock, and walltime2sec().
Referenced by checkTimeLimitDSDP(), and SCIPsdpiSolverLoadAndSolveWithPenalty().
1.8.11