replace custom clock helpers with time module (#29499)
* replace custom clock stuff wtih time module * fix double * fix release * bump cereal * update type * fix one more old-commit-hash: d61f86d3398900ef01423d24cfdf897392a8efbb
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import time
|
||||
import numpy as np
|
||||
from common.realtime import sec_since_boot
|
||||
from multiprocessing import Process
|
||||
from setproctitle import setproctitle # pylint: disable=no-name-in-module
|
||||
|
||||
@@ -12,12 +12,12 @@ def waste(core):
|
||||
m2 = np.zeros((200, 200)) + 1.2
|
||||
|
||||
i = 1
|
||||
st = sec_since_boot()
|
||||
st = time.monotonic()
|
||||
j = 0
|
||||
while 1:
|
||||
if (i % 100) == 0:
|
||||
setproctitle("%3d: %8d" % (core, i))
|
||||
lt = sec_since_boot()
|
||||
lt = time.monotonic()
|
||||
print("%3d: %8d %f %.2f" % (core, i, lt-st, j))
|
||||
st = lt
|
||||
i += 1
|
||||
|
||||
Reference in New Issue
Block a user