mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 22:53:20 +08:00
Fixing the jenkins tests (#1299)
* trying to fix jenkins tests * comment out more tests * remove pytorch stuff * use non-monotonic clock (monotonic not supported on python 2.7) * whitespace
This commit is contained in:
committed by
Robert Nishihara
parent
35f7398666
commit
26125e1547
@@ -24,9 +24,9 @@ class TimerStat(RunningStat):
|
||||
|
||||
def __enter__(self):
|
||||
assert self._start_time is None, "concurrent updates not supported"
|
||||
self._start_time = time.monotonic()
|
||||
self._start_time = time.time()
|
||||
|
||||
def __exit__(self, type, value, tb):
|
||||
assert self._start_time is not None
|
||||
self.push(time.monotonic() - self._start_time)
|
||||
self.push(time.time() - self._start_time)
|
||||
self._start_time = None
|
||||
|
||||
Reference in New Issue
Block a user