Switched to stopwatch
This commit is contained in:
@@ -36,8 +36,4 @@ runTimeEff = interpret $ \env -> \case
|
|||||||
CurrentTimeT ->
|
CurrentTimeT ->
|
||||||
encode_YmdHMS (SubsecondPrecisionFixed 4) w3c . timeToDatetime
|
encode_YmdHMS (SubsecondPrecisionFixed 4) w3c . timeToDatetime
|
||||||
<$> liftIO now
|
<$> liftIO now
|
||||||
BenchFunction f -> do
|
BenchFunction f -> localSeqUnliftIO env $ \run -> stopwatch . run $ f
|
||||||
s <- liftIO now
|
|
||||||
!d <- localSeqUnlift env $ \unlift -> unlift f
|
|
||||||
e <- liftIO now
|
|
||||||
pure (C.width $ s ... e, d)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user