DhanushNehru / DhanushNehru/lockcheck

Show scan duration in the terminal summary

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
good first issue testing
Dominant language
JavaScript
Stars
11
Forks
3
Avg merge
43m
Merged PRs (30d)
1

Description

Since `lockcheck` is an incredibly fast, zero-dependency tool, it would be a nice flex to show exactly how fast it runs in the final terminal output!
We should calculate the time elapsed from the start of the `scan()` function to the end, and print it in the terminal summary panel.

**Acceptance Criteria:**
-
- Use `performance.now()` or `Date.now()` around the execution in `bin/lockcheck.js` (or populate it in the `stats` object inside `index.js`).
- Update the `src/reporters/terminal.js` summary section to display something like: `⏱️ Scanned in 0.42s`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.