Metadata-Version: 2.1
Name: timer.py
Version: 2.1.0
Summary: Easy and accurate timer for Python.
Home-page: https://github.com/rendicahya/timer.py
Author: Randy Cahya Wihandika
Author-email: rendicahya@gmail.com
License: UNKNOWN
Description: # timer.py
        
        ## Installation
        ```python
        pip install timerpy
        ```
        
        ## Usage
        ```python
        from time import sleep
        from timer_py import Timer
        
        timer = Timer('Some Title')
        timer.start()
        # Or:
        # timer = Timer('Some Title').start()
        
        # Some one-second process
        sleep(1)
        
        # Printing the elapsed time. The timer will continue to run.
        timer.elapsed()
        # Output:
        # [Some Title] 00:00:01.004
        
        # Pause the timer
        timer.pause()
        
        # Process that won't be counted
        sleep(1)
        
        # Resume the timer
        timer.resume()
        
        # Another one-second process
        sleep(1)
        
        # Overriding the tag
        timer.elapsed('Checkpoint 1')
        # Output:
        # [Checkpoint 1] 00:00:02.013
        
        # Storing the elapsed time to a variable while hiding the output
        elapsed = timer.elapsed(print=False)
        print(elapsed)
        # Output:
        # 2.0134578000000003
        
        # Stop the timer
        timer.stop()
        # Output:
        # [Some Title] 00:00:02.013
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
