|
SCIP-SDP
4.0.0
|
Go to the source code of this file.
Functions | |
| static SCIP_Real | cputime2sec (clock_t cputime) |
| static SCIP_Real | walltime2sec (long sec, long usec) |
| 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) |
|
static |
converts CPU clock ticks into seconds
| cputime | clock ticks for CPU time |
Definition at line 63 of file sdpiclock.c.
Referenced by SDPIclockGetTime().
|
static |
converts wall clock time into seconds
| sec | seconds counter |
| usec | microseconds counter |
Definition at line 87 of file sdpiclock.c.
Referenced by SDPIclockGetTime().
| 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
| 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