<div dir="ltr"><div>I guess whatever version you are using did not export that function. In any case the definition for that function is incredibly simple, so you could just write your own for now.<br></div><div><br></div><div><pre><span class="gmail-hs-definition">diffTimeSpec</span> <span class="gmail-hs-keyglyph">::</span> <span class="gmail-hs-conid">TimeSpec</span> <span class="gmail-hs-keyglyph">-></span> <span class="gmail-hs-conid">TimeSpec</span> <span class="gmail-hs-keyglyph">-></span> <span class="gmail-hs-conid">TimeSpec</span>
<a name="line-285"></a><span class="gmail-hs-definition">diffTimeSpec</span> <span class="gmail-hs-varid">ts1</span> <span class="gmail-hs-varid">ts2</span> <span class="gmail-hs-keyglyph">=</span> <span class="gmail-hs-varid">abs</span> <span class="gmail-hs-layout">(</span><span class="gmail-hs-varid">ts1</span> <span class="gmail-hs-comment">-</span> <span class="gmail-hs-varid">ts2</span><span class="gmail-hs-layout">)</span>
<a name="line-286"></a></pre><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 9, 2018 at 9:08 AM, Awsaf Rahman <span dir="ltr"><<a href="mailto:awsafrahman1704@gmail.com" target="_blank">awsafrahman1704@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I imported the System.Clock module and tried to use the diffTimeSpec function but it keeps saying "out of scope". </div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 9, 2018 at 2:45 PM, David McBride <span dir="ltr"><<a href="mailto:toad3k@gmail.com" target="_blank">toad3k@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There is a <a id="m_-892014508039423581m_-1289026758857823126gmail-v:diffTimeSpec" class="m_-892014508039423581m_-1289026758857823126gmail-def">diffTimeSpec</a> function in that module that seems like it would work.<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-892014508039423581h5">On Mon, Jul 9, 2018 at 8:30 AM, Awsaf Rahman <span dir="ltr"><<a href="mailto:awsafrahman1704@gmail.com" target="_blank">awsafrahman1704@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-892014508039423581h5"><div dir="ltr">Hello, <div><br></div><div>I am trying to time a function I have written in haskell using the clock package in the following way: </div><div><br></div><div><div style="text-align:center"><b>start <- getTime Monotonic</b></div><div style="text-align:center"><b>evaluate(something)</b></div><div style="text-align:center"><b>end <- getTime Monotonic</b></div><div style="text-align:center"><b>fprint (timeSpecs % "\n") start end</b></div></div><div style="text-align:center"><br></div><div style="text-align:left"><br></div><div style="text-align:left">Now what I want is to store the time difference between <b>start</b> and <b>end. </b>Is there a way I can do that? </div><div style="text-align:left"><br></div><div style="text-align:left">Regards </div><span class="m_-892014508039423581m_-1289026758857823126HOEnZb"><font color="#888888"><div style="text-align:left">Awsaf</div></font></span></div>
<br></div></div>______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bi<wbr>n/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bi<wbr>n/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>