kopia lustrzana https://github.com/micropython/micropython-lib
time: Dummy implementation of perf_counter() & process_time().
Redirect to time() and clock() respectively.pull/20/merge
rodzic
1cbd5591f9
commit
f9fe0185ba
|
@ -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()
|
||||||
|
|
Ładowanie…
Reference in New Issue