Spaces:
Sleeping
Sleeping
Download gui/frontend/node_modules/eslint/lib/shared/stats.js from BrianLov/guiBackend: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/gui/frontend/node_modules/eslint/lib/shared/stats.js
- Command line
-
hf download hf://spaces/BrianLov/guiBackend/gui/frontend/node_modules/eslint/lib/shared/stats.js
-
curl -L -o stats.js https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/gui/frontend/node_modules/eslint/lib/shared/stats.js
638 Bytes
| /** | |
| * @fileoverview Provides helper functions to start/stop the time measurements | |
| * that are provided by the ESLint 'stats' option. | |
| * @author Mara Kiefer <http://github.com/mnkiefer> | |
| */ | |
| ; | |
| /** | |
| * Start time measurement | |
| * @returns {[number, number]} t variable for tracking time | |
| */ | |
| function startTime() { | |
| return process.hrtime(); | |
| } | |
| /** | |
| * End time measurement | |
| * @param {[number, number]} t Variable for tracking time | |
| * @returns {number} The measured time in milliseconds | |
| */ | |
| function endTime(t) { | |
| const time = process.hrtime(t); | |
| return time[0] * 1e3 + time[1] / 1e6; | |
| } | |
| module.exports = { | |
| startTime, | |
| endTime, | |
| }; | |