mirror of
https://github.com/urbit/shrub.git
synced 2024-12-13 16:03:36 +03:00
Added :time
This commit is contained in:
parent
9cdab44c9b
commit
b663c8974b
11
main/app/time/core.hook
Normal file
11
main/app/time/core.hook
Normal file
@ -0,0 +1,11 @@
|
||||
:: Time an operation, usage :time foo, |time :foo
|
||||
::
|
||||
:::: /hook/core/time/app
|
||||
::
|
||||
/+ sh-utils
|
||||
|_ [hide ~]
|
||||
++ peer ,_`.
|
||||
++ poke--args (add-resp [%pass /(scot %da lat) %t %wait lat] ,_`.)
|
||||
++ pour |=([@ a=path *] %.(+< (args-into-gate +> ,_(resu a))))
|
||||
++ resu |=(a=path tang/[>`@dr`(sub lat (slav %da -.a))<]~)
|
||||
--
|
Loading…
Reference in New Issue
Block a user