Crates.io | sched-clock |
lib.rs | sched-clock |
version | 0.1.2 |
source | src |
created_at | 2019-05-17 10:08:25.421308 |
updated_at | 2019-05-17 10:23:43.144807 |
description | A timer for task scheduling |
homepage | |
repository | https://gitlab.com/HadrienG/sched-clock |
max_upload_size | |
id | 134871 |
size | 41,342 |
So, you want to do task scheduling, and in this context you need to reason about sentences such as:
You do not need to reason about historical events that occured more than 200 years ago. And you do not need to plan ahead more than 200 years in the future because you're as convinced as I am that your software (like the rest of computing as we know it) will be obsolete by that time.
You do not need often to correlate timestamps with an UTC reference (like the Unix epoch), and you are aware that these "global" reference clocks are anyway not really global, full of messy metrology edge cases, and overall best avoided unless one really needs them (e.g. for direct human interaction).
On the other hand, you care about precise timing (at least microsecond, nanosecond would be nice) and keeping data structures small and timing-related measurements/manipulations fast.
If all of the above sounds right, this library might be for you!