# Timer

This tiny little core module helps us to measure elapsed time easily.

## Why?

It is a very common issue to measure elapsed time between two events. Let's say I would like to know
and log how much time was the rendering, or how much time was a particular response.
Altough there are dozen of libraries out there, I wanted a simple solution, with minimal functionality.

## Why not console.time()?

```console.time()``` is a nice tool, I use it a lot of times. However, it is very hard to give
custom format to the outputs, and sometimes I would like to process the value, not printing it.

## How to use it

```javascript
// Somewhere in the code
registry.get('timer').start('rendering'); //starts the timer for the ID 'rendering'

// Somewhere else
let elapsedTime = registry.get('timer').end('rendering'); // returns elapsed time in milliseconds
```
