https://github.com/evilc/timerperftests
Testing different ways to do ms-range repeated / delayed actions in C#
https://github.com/evilc/timerperftests
Last synced: about 1 year ago
JSON representation
Testing different ways to do ms-range repeated / delayed actions in C#
- Host: GitHub
- URL: https://github.com/evilc/timerperftests
- Owner: evilC
- License: mit
- Created: 2019-04-22T16:42:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-22T16:56:11.000Z (about 7 years ago)
- Last Synced: 2025-02-04T13:44:37.333Z (over 1 year ago)
- Language: C#
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TimerPerfTests
Testing different ways to do ms-range repeated / delayed actions in C#
## Timer types
### Periodic
A repeating action that happens at intervals, that can be started or stopped
Requirements:
1. Minimal CPU overhead for scheduling the action
1. Accuracy of interval
(Ideally measured between fire points, not between end of last fire and beginning of next)
1. As low an interval as possible
Ideally below minimum system timer granularity (~15ms) - 1ms would be perfect
### Timeout
A delayed action that happens once, at ` + `
Can be restarted while running (move currently running timer to ` + `)
Requirements:
1. Minimal CPU overhead to start / stop / restart
1. Expected rate of calling of restart is up to 1khz
This quest is as much about nice, modern code as it is about performance, but not to a point where too much performance is sacrificed