:mod:`km3pipe.time` =================== .. py:module:: km3pipe.time .. autoapi-nested-parse:: Manipulating time and so... .. !! processed by numpydoc !! Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: km3pipe.time.Timer km3pipe.time.Cuckoo Functions ~~~~~~~~~ .. autoapisummary:: km3pipe.time.total_seconds km3pipe.time.tai_timestamp km3pipe.time.np_to_datetime .. function:: total_seconds(td) Convert the timedelta to seconds. .. !! processed by numpydoc !! .. py:class:: Timer(message='It', precision=3, callback=print) Bases::class:`object` A very simple, accurate and easy to use timer context .. !! processed by numpydoc !! .. attribute:: seconds .. attribute:: cpu_seconds .. method:: start(self) .. method:: stop(self) .. method:: log(self) .. py:class:: Cuckoo(interval=0, callback=print) Bases::class:`object` A timed callback caller, which only executes once in a given interval. .. !! processed by numpydoc !! .. method:: msg(self, *args, **kwargs) Only execute callback when interval is reached. .. !! processed by numpydoc !! .. method:: reset(self) Reset the timestamp .. !! processed by numpydoc !! .. function:: tai_timestamp() Return current TAI timestamp. .. !! processed by numpydoc !! .. function:: np_to_datetime(intime) Convert numpy/pandas datetime64 to list[datetime]. .. !! processed by numpydoc !!