## Timer


A simple timer for measuring elapsed time.


Usage


``` python
Timer(
    label,
    auto_start=False,
)
```


## Parameters


`label: str`  
A label for this timer instance.

`auto_start: bool = ``False`  
Whether to start timing immediately.


## Methods

| Name | Description |
|----|----|
| [reset()](#reset) | Reset the timer to zero. |
| [start()](#start) | Start the timer. |
| [stop()](#stop) | Stop the timer and return elapsed time. |

------------------------------------------------------------------------


#### reset()


Reset the timer to zero.


Usage


``` python
reset()
```


------------------------------------------------------------------------


#### start()


Start the timer.


Usage


``` python
start()
```


##### Raises


`RuntimeError`  
If the timer is already running.


------------------------------------------------------------------------


#### stop()


Stop the timer and return elapsed time.


Usage


``` python
stop()
```


##### Returns


`float`  
The elapsed time in seconds.
