From 87fe0c534160f5636206fc1a8847fce6e5b30227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alperen=20Berat=20DURMU=C5=9E?= <44159011+alperendurmus@users.noreply.github.com> Date: Wed, 21 Oct 2020 09:10:09 +0300 Subject: [PATCH] Update timing.py --- hebpipe/lib/timing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hebpipe/lib/timing.py b/hebpipe/lib/timing.py index 559b799..8668f26 100644 --- a/hebpipe/lib/timing.py +++ b/hebpipe/lib/timing.py @@ -1,7 +1,10 @@ import atexit import sys -from time import clock from functools import reduce +try: + from time import clock +except ImportError: + from time import process_time as clock def secondsToStr(t): return "%d:%02d:%02d.%03d" % \