File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -33,5 +33,8 @@ infoShow = liftEffect <<< EffConsole.infoShow
33
33
time :: forall m . MonadEffect m => String -> m Unit
34
34
time = liftEffect <<< EffConsole .time
35
35
36
+ timeLog :: forall m . MonadEffect m => String -> m Unit
37
+ timeLog = liftEffect <<< EffConsole .timeLog
38
+
36
39
timeEnd :: forall m . MonadEffect m => String -> m Unit
37
40
timeEnd = liftEffect <<< EffConsole .timeEnd
Original file line number Diff line number Diff line change @@ -35,6 +35,13 @@ exports.time = function (s) {
35
35
} ;
36
36
} ;
37
37
38
+ exports . timeLog = function ( s ) {
39
+ return function ( ) {
40
+ console . timeLog ( s ) ;
41
+ return { } ;
42
+ } ;
43
+ } ;
44
+
38
45
exports . timeEnd = function ( s ) {
39
46
return function ( ) {
40
47
console . timeEnd ( s ) ;
Original file line number Diff line number Diff line change @@ -48,5 +48,8 @@ infoShow a = info (show a)
48
48
-- | Start a named timer.
49
49
foreign import time :: String -> Effect Unit
50
50
51
+ -- | Print the time since a named timer started in milliseconds.
52
+ foreign import timeLog :: String -> Effect Unit
53
+
51
54
-- | Stop a named timer and print time since it started in milliseconds.
52
55
foreign import timeEnd :: String -> Effect Unit
You can’t perform that action at this time.
0 commit comments