SCIP-SDP  4.0.0
Functions
sdpiclock.c File Reference

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)
 

Function Documentation

static SCIP_Real cputime2sec ( clock_t  cputime)
static

converts CPU clock ticks into seconds

Parameters
cputimeclock ticks for CPU time

Definition at line 63 of file sdpiclock.c.

Referenced by SDPIclockGetTime().

static SCIP_Real walltime2sec ( long  sec,
long  usec 
)
static

converts wall clock time into seconds

Parameters
secseconds counter
usecmicroseconds counter

Definition at line 87 of file sdpiclock.c.

Referenced by SDPIclockGetTime().

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

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)