timer: threshold to show timers only for time-consuming commands (#8151)

This commit is contained in:
Frederick Zhang authored and GitHub committed 2020-07-14 18:53:37 +02:00
1 parent 68b98c9d53
commit ff7618cf74
2 files changed
+6 -3

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ This plugin allows to display command's execution time in a very nonintrusive wa
Timer can be tuned by these two variables:
* `TIMER_PRECISION` allows to control number of decimal places (default `1`)
* `TIMER_FORMAT` allows to adjust display format (default `'/%d'`)
* `TIMER_THRESHOLD` allows to set the minimum execution time that causes the timer to be shown (default `0`)
Sample session: