Skip to content

Commit

Permalink
Add a small benchmark code
Browse files Browse the repository at this point in the history
  • Loading branch information
firephil committed Mar 15, 2021
1 parent c9862c1 commit e38fef2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/Timer.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Data.Time.Clock(getCurrentTime,diffUTCTime)
import Control.Exception
module Timer where

exec f ::[Int]-> [Int] = do
start <- getCurrentTime
evaluate (f)
end <- getCurrentTime
print (diffUTCTime end start)

0 comments on commit e38fef2

Please sign in to comment.