semvec/pypi-packages huggingface dataset:
cwtimer 0.0.2
Pythonic timing tracker with reporting to Cloudwatch
Keywords: timer

cwtimer
=======

'cwtimer' does one simple thing, track the timing of a 'with' statement block and report to AWS Cloudwatch.

Install
-------

.. code-block:: shell
 
    $ pip install cwtimer

Example
-------

.. code-block:: python

    from cwtimer import cwtimer
    import time
    
    with cwtimer(namespace='MyNameSpace', metric_name='MyMetric',
                 dimensions={'MyDimension':'Value'}):
        time.sleep(1)
        # 1.0s reported to cloudwatch metric