From f9fe0185ba1e69e5a97020cbcd593e89b46c290b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 5 Jan 2015 00:33:45 +0200 Subject: [PATCH] time: Dummy implementation of perf_counter() & process_time(). Redirect to time() and clock() respectively. --- time/time.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/time/time.py b/time/time.py index f311433a..6c5dcf59 100644 --- a/time/time.py +++ b/time/time.py @@ -24,3 +24,9 @@ def strftime(format, t=None): buf = bytearray(32) l = strftime_(buf, 32, format, tm_p) return str(buf[:l], "utf-8") + +def perf_counter(): + return time() + +def process_time(): + return clock()