Tip: [time] directive when on a system that does not have a time command #351
drewburlingame
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Use the following directive to output the time it took for a command to execute
myapp [time] mycmd
will outputtime: 00:00:03.5349504
at the end of the callhere's the directive code
Notice it runs immediately before the [debug] directive so it's the first step in the pipeline.
register it with the UseTimerDirective method
appRunner.UseTimerDirective()
;Let me know if you find it useful and I'll consider adding it to the core package.
Beta Was this translation helpful? Give feedback.
All reactions