{"id":15827289,"url":"https://github.com/wellwind/js-multiple-stopwatch","last_synced_at":"2025-04-01T10:35:06.072Z","repository":{"id":57283384,"uuid":"58744342","full_name":"wellwind/js-multiple-stopwatch","owner":"wellwind","description":"A stopwatch tool let you measure the performance of your code. You can manage multiple stopwatches using this library.","archived":false,"fork":false,"pushed_at":"2016-05-23T07:26:29.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T10:13:23.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wellwind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-13T13:50:29.000Z","updated_at":"2016-05-23T07:38:22.000Z","dependencies_parsed_at":"2022-09-11T15:21:43.266Z","dependency_job_id":null,"html_url":"https://github.com/wellwind/js-multiple-stopwatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fjs-multiple-stopwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fjs-multiple-stopwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fjs-multiple-stopwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fjs-multiple-stopwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wellwind","download_url":"https://codeload.github.com/wellwind/js-multiple-stopwatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246627325,"owners_count":20808101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T10:03:20.959Z","updated_at":"2025-04-01T10:35:06.054Z","avatar_url":"https://github.com/wellwind.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-multiple-stopwatch.js\n\nA stopwatch tool let you measure the performance of your code. You can manage multiple stopwatches using this library.\n\n## Installation\n\n```\nnpm install js-multiple-stopwatch\n```\n\n## Quick Start\n\nJust see the code below to learn how to manage multiple stopwatches.\n\n```javascript\nvar Stopwatch = require(\"js-multiple-stopwatch\");\n\n// start a stopwatch\nStopwatch.Tick();\n\nvar val = 0;\nfor (var i = 1; i \u003c= 10; ++i) {\n    // using any name in parameter as stopwatch name\n    Stopwatch.Tick(\"iteration_\" + i);\n    for (var j = 0; j \u003c 1000000; ++j) {\n        val += j;\n    }\n    Stopwatch.Tock(\"iteration_\" + i);\n}\n\n// stop a stopwatch\nStopwatch.Tock();\n\n// using ElaspedTime to get execution time\nfor(var i = 1; i \u003c= 10; ++i){\n    console.log(\"Iteration \" + i + \" Time : \" + (Stopwatch.ElapsedTime(\"iteration_\" + i) / 1000) + \" seconde\");\n}\n\nconsole.log(\"Total Time : \" + (Stopwatch.ElapsedTime() / 1000) + \" seconde\");\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellwind%2Fjs-multiple-stopwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwellwind%2Fjs-multiple-stopwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellwind%2Fjs-multiple-stopwatch/lists"}