{"id":22678338,"url":"https://github.com/evilc/microtimer","last_synced_at":"2025-04-12T14:40:50.241Z","repository":{"id":71118217,"uuid":"86925734","full_name":"evilC/MicroTimer","owner":"evilC","description":"A DLL Wrapper for Ken Loveday's MicroLibrary, with AutoHotkey interop demo","archived":false,"fork":false,"pushed_at":"2018-06-04T13:00:01.000Z","size":23,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T06:33:29.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evilC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-04-01T16:12:31.000Z","updated_at":"2024-11-10T23:18:04.000Z","dependencies_parsed_at":"2023-04-17T14:01:26.968Z","dependency_job_id":null,"html_url":"https://github.com/evilC/MicroTimer","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/evilC%2FMicroTimer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilC%2FMicroTimer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilC%2FMicroTimer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilC%2FMicroTimer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evilC","download_url":"https://codeload.github.com/evilC/MicroTimer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248582427,"owners_count":21128374,"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-12-09T18:14:49.596Z","updated_at":"2025-04-12T14:40:50.223Z","avatar_url":"https://github.com/evilC.png","language":"C#","readme":"# MicroTimer\nA DLL Wrapper for [Ken Loveday's MicroLibrary](https://www.codeproject.com/Articles/98346/Microsecond-and-Millisecond-NET-Timer), with AutoHotkey interop demo\n\n## Usage in AHK\nInstantiate the MicroTimer class from the DLL  \n```\nasm := CLR_LoadLibrary(\"MicroTimer\\MicroTimer.dll\")\n; Use CLR to instantiate a class from within the DLL\nmt := asm.CreateInstance(\"MicroTimer\")\n```\n\nInstantiate a timer class instance using `Create(\u003ccallback\u003e, \u003ctime in ms\u003e, [\u003cfireImmediately\u003e])`  \n`callback` is a Func Object (Or BoundFunc)  \n`time in ms` can be negative to have the callback only fire once (like AHK's `SetTimer`)  \nOptional `fireImmediately` can be set to true to fire a callback straight away.  \n\n```\nMyTimer := mt.Create(Func(\"MyFunc\"), 1)\n```  \n\nStart / Stop the timer with `Start`, `Stop` or `SetState` (Pass SetState 0 or 1)\n```\nMyTimer.Start()\nMyTimer.Stop()\nMyTimer.SetState()\n```\n\nThat's it!  \nSee the demo script for an example.  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilc%2Fmicrotimer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilc%2Fmicrotimer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilc%2Fmicrotimer/lists"}