Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cassidycodes/bad-timers

example of how not to time requests with koa
https://github.com/cassidycodes/bad-timers

Last synced: 19 days ago
JSON representation

example of how not to time requests with koa

Awesome Lists containing this project

README

        

```bash
node app.js
# in another terminal
curl http://localhost:3000
```

Output
```
Started a timer.
Ended the unreliable timer: 110ms
Ended the accurate timer. Time: 918ms
Started a timer.
Ended the unreliable timer: 828ms
Ended the accurate timer. Time: 838ms
```