mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
moved clock call to global
This commit is contained in:
parent
0279c19a5d
commit
a2eed1f77e
1 changed files with 1 additions and 3 deletions
|
@ -228,14 +228,12 @@ def timeit_alias(args, stdin=None):
|
|||
return
|
||||
|
||||
|
||||
_timings = {}
|
||||
_timings = {'start': clock() if ON_WINDOWS else 0.0}
|
||||
|
||||
|
||||
def setup_timings():
|
||||
global _timings
|
||||
if '--timings' in sys.argv:
|
||||
_timings['start'] = clock() if ON_WINDOWS else 0.0
|
||||
|
||||
events.doc('on_timingprobe', """
|
||||
on_timingprobe(name: str) -> None
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue