{"id":25620773,"url":"https://github.com/codewell/time-it-js","last_synced_at":"2026-05-25T06:30:18.623Z","repository":{"id":42683346,"uuid":"256319471","full_name":"codewell/time-it-js","owner":"codewell","description":"Calculate the execution time of a function in JavaScript","archived":false,"fork":false,"pushed_at":"2023-01-06T16:41:35.000Z","size":889,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-02T23:06:08.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codewell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-16T20:12:37.000Z","updated_at":"2022-02-07T09:26:31.000Z","dependencies_parsed_at":"2023-02-06T06:35:12.034Z","dependency_job_id":null,"html_url":"https://github.com/codewell/time-it-js","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Ftime-it-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Ftime-it-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Ftime-it-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewell%2Ftime-it-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewell","download_url":"https://codeload.github.com/codewell/time-it-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240139764,"owners_count":19754177,"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":"2025-02-22T07:28:01.335Z","updated_at":"2026-05-25T06:30:18.354Z","avatar_url":"https://github.com/codewell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @codewell/time-it-js\n\nCalculate the execution time of a function in JavaScript.\nWorks with both sync and async functions. Always returns a promise.\n\n## Installation\n\n```\nnpm install @codewell/time-it\n```\n\n## Basic Usage\n\n```JavaScript\nimport timeIt from '@codewell/time-it';\n\n// Write examples here\nconst slowMessage = (message) =\u003e {\n    return new Promise((resolve, reject) =\u003e {\n        setTimeout(() =\u003e {\n            resolve(message);\n        }, 1000);\n    });\n};\n\nconst message = await timeIt(slowMessage, \"Description\")(\"Hello, World!\")\n// Prints \"Description: 1000ms\" to the console\n// and returns the message =\u003e \"Hello, World!\"\n\n```\n\n## Issues\n\nPlease help by posting issues here on github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Ftime-it-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewell%2Ftime-it-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewell%2Ftime-it-js/lists"}