{"id":15713015,"url":"https://github.com/timothygu/workshopper-timer","last_synced_at":"2025-03-30T18:28:38.415Z","repository":{"id":57399322,"uuid":"49973094","full_name":"TimothyGu/workshopper-timer","owner":"TimothyGu","description":"A utility to test the execution time of the submission against the solution in a workshopper","archived":false,"fork":false,"pushed_at":"2016-01-19T18:32:27.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-07T06:05:42.174Z","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/TimothyGu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-19T18:20:06.000Z","updated_at":"2016-01-19T18:20:23.000Z","dependencies_parsed_at":"2022-09-18T23:50:31.744Z","dependency_job_id":null,"html_url":"https://github.com/TimothyGu/workshopper-timer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyGu%2Fworkshopper-timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyGu%2Fworkshopper-timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyGu%2Fworkshopper-timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimothyGu%2Fworkshopper-timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimothyGu","download_url":"https://codeload.github.com/TimothyGu/workshopper-timer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246361561,"owners_count":20764953,"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-03T21:20:59.621Z","updated_at":"2025-03-30T18:28:38.393Z","avatar_url":"https://github.com/TimothyGu.png","language":"JavaScript","readme":"# workshopper-timer\n\nMakes sure the submission of a workshop executes for around the same duration\nas the solution.\n\n[![Dependency Status](https://img.shields.io/david/TimothyGu/workshopper-timer.svg)](https://david-dm.org/TimothyGu/workshopper-timer)\n[![NPM version](https://img.shields.io/npm/v/workshopper-timer.svg)](https://www.npmjs.org/package/workshopper-timer)\n\n## Installation\n\n    npm install --save workshopper-timer\n\n## Usage\n\n```js\nvar exercise = require('workshopper-exercise')();\nvar filecheck = require('workshopper-exercise/filecheck');\nvar execute = require('workshopper-exercise/execute');\nvar comparestdout = require('workshopper-exercise/comparestdout');\n\nvar timer = require('workshopper-timer');\n\nexercise = filecheck(exercise);\nexercise = execute(exercise);\nexercise = comparestdout(exercise);\n\n// 100 = threshold in ms\nexercise = timer(exercise, 100);\n\nmodule.exports = exercise;\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothygu%2Fworkshopper-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimothygu%2Fworkshopper-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimothygu%2Fworkshopper-timer/lists"}