{"id":18701685,"url":"https://github.com/daviehh/timedloop","last_synced_at":"2025-11-09T00:30:37.254Z","repository":{"id":207285933,"uuid":"231454196","full_name":"daviehh/TimedLoop","owner":"daviehh","description":"Julia timed for loop","archived":false,"fork":false,"pushed_at":"2020-01-02T20:30:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T05:41:00.806Z","etag":null,"topics":["julia","timing","utility"],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/daviehh.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,"governance":null}},"created_at":"2020-01-02T20:26:44.000Z","updated_at":"2020-01-02T20:33:09.000Z","dependencies_parsed_at":"2023-11-15T02:46:46.595Z","dependency_job_id":"8d6d1d4e-033b-480f-807e-c255b266b8c2","html_url":"https://github.com/daviehh/TimedLoop","commit_stats":null,"previous_names":["daviehh/timedloop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviehh%2FTimedLoop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviehh%2FTimedLoop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviehh%2FTimedLoop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daviehh%2FTimedLoop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daviehh","download_url":"https://codeload.github.com/daviehh/TimedLoop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565644,"owners_count":19660154,"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":["julia","timing","utility"],"created_at":"2024-11-07T11:42:15.741Z","updated_at":"2025-11-09T00:30:37.178Z","avatar_url":"https://github.com/daviehh.png","language":"Julia","readme":"# Timed for loop\n\nFor long-running `for` loops where each loop takes approximately the same time to run, this macro calculates the average time per iteration and estimates when the loop will finish.\n\n- Usage:\n\n  ```julia\n  @tml [verbose]\n  ```\n\n  `verbose` is an optional Boolean controlling if the output should be verbose:\n\n  - `false` (default): only print the timing information for the first 10 iterations, then every 10 iterations; or if the average per-iteration run time is more than 5 seconds\n  - `true`: print timing information every iteration; shortcut `@tmlv`\n\n- example (see example.jl)/TLDR:\n\n  ```julia\n  using TimedLoop\n\n  nl = 20\n  c = rand(nl)\n\n  @tml for j = 1:nl\n      c[j] = j\n      sleep(.1)\n      println(\"looping $j\")\n  end\n\n\n  @tml true for j = 1:nl\n      c[j] = j\n      sleep(.1)\n      println(\"looping $j\")\n  end\n\n  # equivalently\n  @tmlv for j = 1:nl\n       c[j] = j\n       sleep(.1)\n       println(\"looping $j\")\n   end\n\n  ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaviehh%2Ftimedloop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaviehh%2Ftimedloop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaviehh%2Ftimedloop/lists"}