<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Feb 13, 2016 at 8:36 AM, Vojtěch Čihák <span dir="ltr"><<a href="mailto:vojtech.cihak@atlas.cz" target="_blank">vojtech.cihak@atlas.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p style="padding:0px;margin:0px">Hi,</p>
<p style="padding:0px;margin:0px"> </p>
<p style="padding:0px;margin:0px">64-bit Linux, Core2Duo@2GHz, FPC3.0.0:</p>
<p style="padding:0px;margin:0px"> </p>
<p style="padding:0px;margin:0px">Pascal: 440 ms</p>
<p style="padding:0px;margin:0px">C: 163ms</p>
<p style="padding:0px;margin:0px">Delphi )*: 515ms</p>
<p style="padding:0px;margin:0px"> </p>
<p style="padding:0px;margin:0px">)* Delphi7, personal edition, under wine, command: wine happyd7.exe</p></blockquote></div><div><br></div><div>I think that the C code has a small problem:</div><div><br></div><div><font face="monospace, monospace">Found tickets. Time elapsed: 0 msec</font><br></div><div><br></div><div>Just added the %d instead of %:</div><div><br></div><div><font face="monospace, monospace">printf("Found %d tickets. Time elapsed: %.0f msec\n", tickets_count, msec);</font><br></div><div><br></div><div>Now:</div><div><br></div><div><font face="monospace, monospace">gcc happytickets.c -O2 -o happytickets<br></font></div><div><font face="monospace, monospace">./happytickets</font></div><div>Found 4816030 tickets. Time elapsed: 0 msec<br></div><div><br></div><div class="gmail_extra">Core i7 2.20 GHz 6 GB Windows 7 64 bits</div><div class="gmail_extra">gcc version 5.2.0 (Rev4, Built by MSYS2 project) MinGW-w64<br></div><div class="gmail_extra"><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>