[Haskell-beginners] Storing the time difference between two Monotonic time results

Awsaf Rahman awsafrahman1704 at gmail.com
Mon Jul 9 12:30:04 UTC 2018


Hello,

I am trying to time a function I have written in haskell using the clock
package in the following way:

*start <- getTime Monotonic*
*evaluate(something)*
*end <- getTime Monotonic*
*fprint (timeSpecs % "\n") start end*


Now what I want is to store the time difference between *start* and *end. *Is
there a way I can do that?

Regards
Awsaf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20180709/d0802dca/attachment.html>


More information about the Beginners mailing list