SCIP-SDP  4.0.0
Functions
sdpiclock.h File Reference

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)
 

Detailed Description

methods for clocks and timing

Author
Tobias Achterberg
Marc Pfetsch

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.

Author
Tobias Achterberg
Marc Pfetsch

Definition in file sdpiclock.h.

Function Documentation

SCIP_RETCODE SDPIclockCreate ( SDPI_CLOCK **  clck)

creates a clock and initializes it

Parameters
clckpointer 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

Parameters
clckpointer 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

Parameters
clckclock timer
clocktypetype 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

Parameters
clckclock 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

Parameters
clckclock 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)