Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cassidycodes/bad-timers
- Owner: cassidycodes
- Created: 2024-06-07T19:40:29.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-07T19:53:16.000Z (5 months ago)
- Last Synced: 2024-06-07T21:04:30.373Z (5 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```