There is a diffTimeSpec function in that module that seems like it would work.

On Mon, Jul 9, 2018 at 8:30 AM, Awsaf Rahman <awsafrahman1704@gmail.com> wrote:
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

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners