Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evilc/microtimer
A DLL Wrapper for Ken Loveday's MicroLibrary, with AutoHotkey interop demo
https://github.com/evilc/microtimer
Last synced: 13 days ago
JSON representation
A DLL Wrapper for Ken Loveday's MicroLibrary, with AutoHotkey interop demo
- Host: GitHub
- URL: https://github.com/evilc/microtimer
- Owner: evilC
- Created: 2017-04-01T16:12:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T13:00:01.000Z (over 6 years ago)
- Last Synced: 2024-12-06T20:12:23.718Z (16 days ago)
- Language: C#
- Size: 22.5 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MicroTimer
A DLL Wrapper for [Ken Loveday's MicroLibrary](https://www.codeproject.com/Articles/98346/Microsecond-and-Millisecond-NET-Timer), with AutoHotkey interop demo## Usage in AHK
Instantiate the MicroTimer class from the DLL
```
asm := CLR_LoadLibrary("MicroTimer\MicroTimer.dll")
; Use CLR to instantiate a class from within the DLL
mt := asm.CreateInstance("MicroTimer")
```Instantiate a timer class instance using `Create(,
```
MyTimer := mt.Create(Func("MyFunc"), 1)
```Start / Stop the timer with `Start`, `Stop` or `SetState` (Pass SetState 0 or 1)
```
MyTimer.Start()
MyTimer.Stop()
MyTimer.SetState()
```That's it!
See the demo script for an example.