<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Veronica,<br>
<br>
you are right, SCIPgetTotalTime() returns the time passed since
the creation of your SCIP instance.<br>
<br>
However, the default clock type in SCIP is measuring CPU time.
There is a parameter "timing/clocktype" to change it to wallclock
time (which is what time() from time.h measures, if I am not
mistaken). However, since this clock is started as soon as SCIP is
built, there is unfortunately no chance to change its type, unless
you change the define<br>
#define SCIP_DEFAULT_TIME_CLOCKTYPE SCIP_CLOCKTYPE_CPU<br>
to<br>
#define SCIP_DEFAULT_TIME_CLOCKTYPE SCIP_CLOCKTYPE_WALL<br>
in set.c<br>
<br>
CPU and Wallclock time can return quite different values, for
example if you have other jobs running on your computer with which
SCIP needs to share the CPU.<br>
<br>
Best,<br>
Gerald<br>
<br>
On 01.02.2016 15:26, Veronica Dal Sasso wrote:<br>
</div>
<blockquote
cite="mid:CABefrmRV38K5oEUcGWRcMS8Nnonv62=7NgyeHA+15qQHpG81KA@mail.gmail.com"
type="cite">
<div dir="ltr">Hello everybody!
<div>I am implementing my LP and column generation algorithm in
C++ and I would like to ask some further explanation on how
the function SCIPgetTotalTime() works. In the documentation it
is written that it returns "the current total SCIP time in
seconds, ie. the total time since the SCIP instance has been
created".</div>
<div>Now, my program is made of, more or less, the following
steps:</div>
<div><br>
</div>
1) read data from file & store useful info<br>
2) initialize the solver class - in here, there is an initScip()
function where the SCIP problem is created (SCIPcreate())
<div>3) setup the problem and configure the pricer<br>
<div>4) solve the problem </div>
<div><br>
</div>
<div>I was pretty sure the time given by SCIPgetTotalTime()
would include the computational time for steps 2,3 and 4,
but if I use the C++ function time() from the time.h library
to compute the time passed just for steps 3 and 4, it is
already larger.</div>
</div>
<div><br>
</div>
<div>Am I missing something?</div>
<div>Thanks you all in advance,</div>
<div>Veronica</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Scip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Scip@zib.de">Scip@zib.de</a>
<a class="moz-txt-link-freetext" href="http://listserv.zib.de/mailman/listinfo/scip">http://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
</blockquote>
<br>
</body>
</html>