SCIP-SDP
4.0.0
Main Page
Files
File List
File Members
src
sdpi
struct_sdpiclock.h
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2
/* */
3
/* This file is part of SCIPSDP - a solving framework for mixed-integer */
4
/* semidefinite programs based on SCIP. */
5
/* */
6
/* Copyright (C) 2011-2013 Discrete Optimization, TU Darmstadt */
7
/* EDOM, FAU Erlangen-Nürnberg */
8
/* 2014-2021 Discrete Optimization, TU Darmstadt */
9
/* */
10
/* */
11
/* This program is free software; you can redistribute it and/or */
12
/* modify it under the terms of the GNU Lesser General Public License */
13
/* as published by the Free Software Foundation; either version 3 */
14
/* of the License, or (at your option) any later version. */
15
/* */
16
/* This program is distributed in the hope that it will be useful, */
17
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
18
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
19
/* GNU Lesser General Public License for more details. */
20
/* */
21
/* You should have received a copy of the GNU Lesser General Public License */
22
/* along with this program; if not, write to the Free Software */
23
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.*/
24
/* */
25
/* */
26
/* Based on SCIP - Solving Constraint Integer Programs */
27
/* Copyright (C) 2002-2021 Zuse Institute Berlin */
28
/* SCIP is distributed under the terms of the SCIP Academic Licence, */
29
/* see file COPYING in the SCIP distribution. */
30
/* */
31
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
32
39
/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
40
41
#ifndef __STRUCT_SDPICLOCK_H__
42
#define __STRUCT_SDPICLOCK_H__
43
44
45
#if defined(_WIN32) || defined(_WIN64)
46
#include <time.h>
47
#else
48
#include <sys/times.h>
49
#endif
50
51
#include "scip/def.h"
52
#include "scip/type_clock.h"
53
54
#ifdef __cplusplus
55
extern
"C"
{
56
#endif
57
59
struct
SDPI_CPUClock
60
{
61
clock_t
user
;
62
};
63
65
struct
SDPI_WallClock
66
{
67
long
sec
;
68
long
usec
;
69
};
70
72
struct
SDPI_Clock
73
{
74
union
75
{
76
SDPI_CPUCLOCK
cpuclock
;
77
SDPI_WALLCLOCK
wallclock
;
78
} data;
79
int
nruns
;
80
SDPI_CLOCKTYPE
clocktype
;
81
};
82
83
#ifdef __cplusplus
84
}
85
#endif
86
87
#endif
SDPI_Clock::cpuclock
SDPI_CPUCLOCK cpuclock
Definition:
struct_sdpiclock.h:76
SDPI_WallClock
Definition:
struct_sdpiclock.h:65
SDPI_Clock::wallclock
SDPI_WALLCLOCK wallclock
Definition:
struct_sdpiclock.h:77
SDPI_CLOCKTYPE
enum SDPI_ClockType SDPI_CLOCKTYPE
Definition:
type_sdpiclock.h:55
SDPI_Clock::clocktype
SDPI_CLOCKTYPE clocktype
Definition:
struct_sdpiclock.h:80
SDPI_WallClock::usec
long usec
Definition:
struct_sdpiclock.h:68
SDPI_CPUClock::user
clock_t user
Definition:
struct_sdpiclock.h:61
SDPI_Clock
Definition:
struct_sdpiclock.h:72
SDPI_Clock::nruns
int nruns
Definition:
struct_sdpiclock.h:79
SDPI_CPUClock
Definition:
struct_sdpiclock.h:59
SDPI_WallClock::sec
long sec
Definition:
struct_sdpiclock.h:67
Generated by
1.8.11