## Timer


A simple timer for measuring elapsed time.


Usage


``` python
Timer(name="default")
```


## Parameters


`name: str = ``"default"`  
The name of the timer.


## Methods

| Name | Description |
|----|----|
| [elapsed()](#elapsed) | Return the elapsed time in seconds. |
| [start()](#start) | Start the timer. |
| [stop()](#stop) | Stop the timer. |

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


#### elapsed()


Return the elapsed time in seconds.


Usage


``` python
elapsed()
```


##### Returns


`float`  
The elapsed time.


##### Raises


`RuntimeError`  
If the timer has not been started.


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


#### start()


Start the timer.


Usage


``` python
start()
```


##### Returns


None


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


#### stop()


Stop the timer.


Usage


``` python
stop()
```


##### Returns


None
