<div dir="ltr">If we don't use the seconds() function for anything meaningful, I'd rather just ditch it for all platforms than have a platform specific ifdef.<div><br></div><div> - Daniel</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Mar 10, 2014 at 4:16 AM, robert lytton <span dir="ltr"><<a href="mailto:robert@xmos.com" target="_blank">robert@xmos.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  The clock() function was wrapping, hence negative stopwatch elapse times were negating the Mflop calculations.<br>
  As the Mflop calculations are disabled, clock() has been replaced by a simple counter.<br>
<br>
Hi ddunbar,<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D2771" target="_blank">http://llvm-reviews.chandlerc.com/D2771</a><br>
<br>
CHANGE SINCE LAST DIFF<br>
  <a href="http://llvm-reviews.chandlerc.com/D2771?vs=7069&id=7686#toc" target="_blank">http://llvm-reviews.chandlerc.com/D2771?vs=7069&id=7686#toc</a><br>
<br>
Files:<br>
  MultiSource/Benchmarks/SciMark2-C/Stopwatch.c<br>
<br>
Index: MultiSource/Benchmarks/SciMark2-C/Stopwatch.c<br>
===================================================================<br>
--- MultiSource/Benchmarks/SciMark2-C/Stopwatch.c<br>
+++ MultiSource/Benchmarks/SciMark2-C/Stopwatch.c<br>
@@ -3,7 +3,12 @@<br>
<br>
 double seconds()<br>
 {<br>
+#ifdef __XS1B__<br>
+    static double t = 0.0;<br>
+    return ++t;<br>
+#else<br>
         return ((double) clock()) / (double) CLOCKS_PER_SEC;<br>
+#endif<br>
 }<br>
<br>
 void Stopwtach_reset(Stopwatch Q)<br>
</blockquote></div><br></div>