Commit 8399ff2d authored by Kirill Smelkov's avatar Kirill Smelkov

time.pyx: Move misc nogil functions into under `cdef nogil` block

Just cosmetics - easier to oversee the code.
parent 873cf8aa
...@@ -244,16 +244,18 @@ pymillisecond = millisecond ...@@ -244,16 +244,18 @@ pymillisecond = millisecond
pyminute = minute pyminute = minute
pyhour = hour pyhour = hour
cdef double now_pyexc() nogil except +topyexc: cdef nogil:
double now_pyexc() except +topyexc:
return now() return now()
cdef void sleep_pyexc(double dt) nogil except +topyexc: void sleep_pyexc(double dt) except +topyexc:
sleep(dt) sleep(dt)
cdef void _Ticker_stop_pyexc(PyTicker t) nogil except +topyexc: void _Ticker_stop_pyexc(PyTicker t) except +topyexc:
t._stop() t._stop()
cdef bint _Timer_stop_pyexc (PyTimer t) nogil except +topyexc: bint _Timer_stop_pyexc (PyTimer t) except +topyexc:
return t._stop() return t._stop()
cdef void _Timer_reset_pyexc(PyTimer t, double dt) nogil except +topyexc: void _Timer_reset_pyexc(PyTimer t, double dt) except +topyexc:
t._reset(dt) t._reset(dt)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment