From a7f5170d68c0b75a9864763a90ac11e51ec67c81 Mon Sep 17 00:00:00 2001 From: Marc Cornellà Date: Mon, 31 Aug 2020 17:38:30 +0200 Subject: Remove perl dependency --- plugins/timer/timer.plugin.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/timer') 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() { -- cgit v1.2.3-70-g09d2