![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
debugging-timer
Advanced tools
Measure the execution time of multiple sections of your code, then effortlessly print all the timer results at once to the console.
Measure the duration of multiple parts of your code, then effortlessly print all the timer results at once to the console.
Sample output:
Loading file: 506 ms
Processing data: 858 ms
You will use three methods: timer.start('task name')
, timer.end('task name')
,
and timer.print()
to show the results in the console. The print()
method also
returns the results as string, so you can save it to some logs if you need.
const DebugTimer = require('debugging-timer');
let timer = new DebugTimer();
(async () => {
timer.start('Loading file');
// Let's pretend we are doing some work here:
await delay(500);
timer.end('Loading file');
timer.start('Processing data');
await delay(850);
timer.end('Processing data');
// Let's see the results!
timer.print();
// Prints:
// Loading file: 506 ms
// Processing data: 858 ms
})();
async function delay(ms) {
await new Promise(resolve => setTimeout(resolve, ms));
}
Welcome in the linked GitHub repository.
FAQs
Measure the execution time of multiple sections of your code, then effortlessly print all the timer results at once to the console.
The npm package debugging-timer receives a total of 0 weekly downloads. As such, debugging-timer popularity was classified as not popular.
We found that debugging-timer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.