
    #
3j                     "    S SK r  " S S\5      rg)    Nc                   (    \ rS rSrSrS rSS jrSrg)Timer   zTimer for benchmarkingc                 8    [         R                  " 5       U l        g)zStarts a timerN)timeperf_countert)selfs    N/home/wildlama/miniconda3/lib/python3.13/site-packages/pymatting/util/timer.py__init__Timer.__init__   s     ""$    Nc                     [         R                  " 5       U R                  -
  nUb  [        USU-  5        [         R                  " 5       U l        U$ )ao  Return and print time since last stop-call or initialization.
Also print elapsed time if message is provided.

Parameters
----------
message: str
    Message to print in front of passed seconds

Example
-------
>>> from pymatting import *
>>> t = Timer()
>>> t.stop()
2.6157200919999966
>>> t = Timer()
>>> t.stop('Test')
Test  - 11.654551 seconds
11.654551381000001
z - %f seconds)r   r   r	   print)r
   message
delta_times      r   stop
Timer.stop   sF    ( &&(4661
'?Z78""$r   )r	   )N)__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes__ r   r   r   r      s     %
r   r   )r   objectr   r   r   r   <module>r      s    #F #r   