time: Dummy implementation of perf_counter() & process_time().

Redirect to time() and clock() respectively.
pull/20/merge
Paul Sokolovsky 2015-01-05 00:33:45 +02:00
rodzic 1cbd5591f9
commit f9fe0185ba
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -24,3 +24,9 @@ def strftime(format, t=None):
buf = bytearray(32) buf = bytearray(32)
l = strftime_(buf, 32, format, tm_p) l = strftime_(buf, 32, format, tm_p)
return str(buf[:l], "utf-8") return str(buf[:l], "utf-8")
def perf_counter():
return time()
def process_time():
return clock()