:py: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 .. py:function:: total_seconds(td) Convert the timedelta to seconds. .. !! processed by numpydoc !! .. py:class:: Timer(message='It', precision=3, callback=print) A very simple, accurate and easy to use timer context .. !! processed by numpydoc !! .. py:property:: seconds .. py:property:: cpu_seconds .. py:method:: start() .. py:method:: stop() .. py:method:: log() .. py:class:: Cuckoo(interval=0, callback=print) A timed callback caller, which only executes once in a given interval. .. !! processed by numpydoc !! .. py:method:: msg(*args, **kwargs) Only execute callback when interval is reached. .. !! processed by numpydoc !! .. py:method:: reset() Reset the timestamp .. !! processed by numpydoc !! .. py:function:: tai_timestamp() Return current TAI timestamp. .. !! processed by numpydoc !! .. py:function:: np_to_datetime(intime) Convert numpy/pandas datetime64 to list[datetime]. .. !! processed by numpydoc !!