summaryrefslogtreecommitdiff
path: root/plugins/timer/timer.plugin.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-08-31 17:38:30 +0200
committerMarc Cornellà <marc.cornella@live.com>2020-09-01 11:52:32 +0200
commita7f5170d68c0b75a9864763a90ac11e51ec67c81 (patch)
tree40b69169c39ba21f3be731cff9b317aeacf3c8fd /plugins/timer/timer.plugin.zsh
parent0dc83fe49fa1f645c64fe7dbdb94914093b90aff (diff)
downloadzsh-a7f5170d68c0b75a9864763a90ac11e51ec67c81.tar.gz
zsh-a7f5170d68c0b75a9864763a90ac11e51ec67c81.tar.bz2
zsh-a7f5170d68c0b75a9864763a90ac11e51ec67c81.zip
Remove perl dependency
Diffstat (limited to 'plugins/timer/timer.plugin.zsh')
-rw-r--r--plugins/timer/timer.plugin.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/timer/timer.plugin.zsh b/plugins/timer/timer.plugin.zsh
index 1be7516a3..b261f71c5 100644
--- a/plugins/timer/timer.plugin.zsh
+++ b/plugins/timer/timer.plugin.zsh
@@ -1,5 +1,8 @@
+zmodload zsh/datetime
+
__timer_current_time() {
- perl -MTime::HiRes=time -e'print time'
+ zmodload zsh/datetime
+ echo $EPOCHREALTIME
}
__timer_format_duration() {