{"id":22375841,"url":"https://github.com/stylewarning/cl-stopwatch","last_synced_at":"2026-03-19T22:37:21.190Z","repository":{"id":236852835,"uuid":"625691628","full_name":"stylewarning/cl-stopwatch","owner":"stylewarning","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-09T22:17:42.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-20T08:50:30.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Common Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stylewarning.png","metadata":{"files":{"readme":"README","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-09T22:06:51.000Z","updated_at":"2023-04-11T06:39:45.000Z","dependencies_parsed_at":"2024-04-29T00:08:21.696Z","dependency_job_id":"ca63d489-da33-4505-814e-5359bff7b5ee","html_url":"https://github.com/stylewarning/cl-stopwatch","commit_stats":null,"previous_names":["stylewarning/cl-stopwatch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stylewarning/cl-stopwatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fcl-stopwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fcl-stopwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fcl-stopwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fcl-stopwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stylewarning","download_url":"https://codeload.github.com/stylewarning/cl-stopwatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stylewarning%2Fcl-stopwatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276324429,"owners_count":25622504,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-04T21:27:56.653Z","updated_at":"2025-09-21T23:50:55.029Z","avatar_url":"https://github.com/stylewarning.png","language":"Common Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"=== SOME DOCUMENTATION TO CL-STOPWATCH ===\n\nCopyright (c) 2012 Robert Smith\n\nSee LICENSE for license details.\n\n\n== To Time Something ==\n\nUse WITH-STOPWATCH to time something in milliseconds. For example:\n\n\u003e (with-stopwatch\n\u003e   (sleep 5)\n\u003e   'lol)\n\nwhich results in two values, the first is the result of the\ncomputation, the second is the number of milliseconds it took to\ncompute, as shown:\n\n\u003e LOL\n\u003e 5010\n\nIf your code isn't simple enough to wrap with a WITH-STOPWATCH, you\ncan use the lower level stopwatch functions. The following example\nshould be self-explanatory.\n\n\u003e * (stopwatch-start :race)\n\u003e ; No value\n\u003e * (stopwatch-read :race)\n\u003e 10414\n\u003e * (stopwatch-read :race)\n\u003e 17387\n\u003e * (stopwatch-reset :race)\n\u003e ;; No Value\n\u003e * (stopwatch-read :race)\n\u003e 5507\n\u003e * (stopwatch-stop :race)\n\u003e 22128\n\n\n== To Indicate Progress ==\n\nUse PROGRESS-TASK to indicate progress to a stream. Example:\n\n\u003e (progress-task :sleepy-time \"Waiting to wake up\"\n\u003e   (sleep 5)\n\u003e   (format t \"just 5 more seconds...~%\")\n\u003e   (progress-task :snooze \"Snoozing a little more\"\n\u003e     (sleep 5))\n\u003e   'ok-im-awake)\n\nwhich results in the following getting output.\n\n\u003e ;;;  SLEEPY-TIME: Waiting to wake up...\n\u003e just 5 more seconds...\n\u003e ;;;    SNOOZE: Snoozing a little more...\n\u003e ;;;    SNOOZE: Done. [4999.0 ms]\n\u003e ;;;  SLEEPY-TIME: Done. [10017.0 ms]\n\u003e OK-IM-AWAKE\n\nNote the nesting, and the increased indentation as a result.\n\nThere are analogous functions for doing \"progress tasks\" at a low\nlevel like the stopwatch functions. For example:\n\n\u003e (progn\n\u003e   (progress-task-start :nap \"Taking a nap\")\n\u003e   (sleep 3)\n\u003e   (progress-task-done :nap))\n\nwhich results in:\n\n\u003e ;;;  NAP: Taking a nap...\n\u003e ;;;  NAP: Done. [3000.0 ms]\n\u003e ; No value\n\n\n== To Time a Compiled Form ==\n\nSuppose you have some code you want to benchmark, but you wish to\nbenchmark it compiled. To guarantee it gets compiled, use TIME*.\n\nFor example:\n\n\u003e (time* (progn\n\u003e          (sleep 5)\n\u003e          'done))\n\nwhich outputs\n\n\u003e Evaluation took:\n\u003e   5.0000 seconds of real time\n\u003e   0.000045 seconds of total run time (0.000025 user, 0.000020 system)\n\u003e   0.00% CPU\n\u003e   0 bytes consed\n\u003e   \n\u003e DONE\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylewarning%2Fcl-stopwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstylewarning%2Fcl-stopwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstylewarning%2Fcl-stopwatch/lists"}