{"id":19401922,"url":"https://github.com/thwillert/_sleepex","last_synced_at":"2026-02-27T21:37:03.616Z","repository":{"id":126474422,"uuid":"238992122","full_name":"THWillert/_SleepEx","owner":"THWillert","description":"AutoIt - Funktionssammlung für ein präziseres Sleep ","archived":false,"fork":false,"pushed_at":"2020-09-18T13:29:23.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-17T21:04:02.206Z","etag":null,"topics":["autoit","sleep"],"latest_commit_sha":null,"homepage":null,"language":"AutoIt","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/THWillert.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-07T18:00:49.000Z","updated_at":"2022-03-01T11:01:27.000Z","dependencies_parsed_at":"2023-06-16T23:00:28.153Z","dependency_job_id":null,"html_url":"https://github.com/THWillert/_SleepEx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/THWillert/_SleepEx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THWillert%2F_SleepEx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THWillert%2F_SleepEx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THWillert%2F_SleepEx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THWillert%2F_SleepEx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/THWillert","download_url":"https://codeload.github.com/THWillert/_SleepEx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THWillert%2F_SleepEx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29915348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"ssl_error","status_checked_at":"2026-02-27T19:37:41.463Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["autoit","sleep"],"created_at":"2024-11-10T11:20:40.115Z","updated_at":"2026-02-27T21:37:03.593Z","avatar_url":"https://github.com/THWillert.png","language":"AutoIt","funding_links":[],"categories":[],"sub_categories":[],"readme":"# _SleepEx\nFunktionssammlung für AutoIt, für ein präziseres Sleep und eine einfachere Angabe von Millisekunden\n\n- _SleepEx: eine \"handlichere\" Version von Sleep inklusiv einem Zeitbereich von Micro-Sekunden bis zu mehreren Tagen\n- verwendet die Funktion _HighPrecisionSleep(): ist wesentlich genauer als Sleep\n- _MS: Wandelt einfache Angaben in ms um (inklusiv Laufzeitkoorektur und direkter Verwendung mit Sleep bzw. _SleepEx)\n- _2MS: Direkte Rückgabe des Millisekunden Wertes\n\n## Funktionsaufruf und Beispiel\n\n```autoit\nGlobal $_SLEEPEX_CORR\n\nMain()\n\nFunc Main()\n    ; Laufzeitkorrektur fuer _SleepEx()\n    ; - stimmt nicht ganz, macht aber dennoch das Ergebnis etwas genauer\n    _SleepEx_Corr()\n    ConsoleWrite($_SLEEPEX_CORR \u0026 @CRLF)\n\n    MsgBox(0,\"2 Minuten, 15 Sekunden und 4 ms:\", _2MS(\"0:2:15:4\"))\n\n    Local $t = TimerInit()\n    _SleepEx(\"00:00:02:0100\") ; 2 sec, 100 ms\n    ConsoleWrite(TimerDiff($t) \u0026 @CRLF)\n\n    Local $t = TimerInit()\n    _SleepEx(\"0:0:0:4\") ; 4 ms !!!\n    ConsoleWrite(TimerDiff($t) \u0026 @CRLF)\n\n    Local $t = TimerInit()\n    Sleep(_MS(\"0:0:1:20\")) ; 1 sec 20 ms\n    ConsoleWrite(TimerDiff($t) \u0026 @CRLF)\n\n    $t = TimerInit()\n    _SleepEx(2) ; 2 sec\n    ConsoleWrite(TimerDiff($t) \u0026 @CRLF)\n\n    $t = TimerInit()\n    _SleepEx(1, \"m\") ; 1 min\n    ConsoleWrite(TimerDiff($t) \u0026 @CRLF)\n\n\nEndFunc   ;==\u003eMain\n```\n\nErgebnisse in Millisekunden:\n```\n0.182804220570591\n2107.88064147315\n4.27925162528962\n1021.42623648781\n2000.37281600462\n60096.8887882523\n```\n\n## Voraussetzungen\n\nAutoIt\n\n\n## Installation\n\nAls Funktion in das eigene Programm kopieren, oder als UDF in das Include Verzeichnis von AutoIt kopieren.\n\n\n## Diskusion und Vorschläge\n\n[autoit.de](https://autoit.de/thread/17556-sleepex-und-ms-konvertierung-von-ms/)\n\n## ToDo\n\n\n## Authors\nThorsten Willert\n\nAndreas Karlsson (monoceres) - Function: _HighPrecisionSleep\n\n[Homepage](https://www.thorsten-willert.de/software/autoit/autoit-funktionen/_sleepex)\n\n## Lizenz\nDas Ganze steht unter der [MIT](https://github.com/THWillert/HomeMatic_CSS/blob/master/LICENSE) Lizenz\n.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthwillert%2F_sleepex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthwillert%2F_sleepex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthwillert%2F_sleepex/lists"}