Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anjmao/realtime
Suspend-aware monotonic timers in pure Go
https://github.com/anjmao/realtime
Last synced: 12 days ago
JSON representation
Suspend-aware monotonic timers in pure Go
- Host: GitHub
- URL: https://github.com/anjmao/realtime
- Owner: anjmao
- License: mit
- Created: 2020-02-27T18:58:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-01T07:39:43.000Z (over 4 years ago)
- Last Synced: 2024-06-20T15:01:07.932Z (5 months ago)
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Suspend-aware monotonic timers in pure Go
This "realtime" package is proof of concept for [real time timers proposal](https://github.com/golang/go/issues/36141). Package implements part of Go standard library time package functionality using platform specific APIS.
✅ - Done.
❎ - Works, but could be missing something or need improvements.
❌ - Not started yet.
| API | Darwin/BSD | Linux | Windows
| ------------- | ------------- | ------------- |------------- |
| `realtime.Now()` | ✅️ | ✅️ | ❌
| `realtime.Since(u time.Duration)` | ✅ | ✅️ | ❌
| `realtime.Sleep(d time.Duration)` | ❎️ | ❎️ | ❌
| `realtime.AfterFunc(d time.Duration, f func())` | ❎️ | ❎ | ❌
| `realtime.After(d time.Duration)` | ❎️ | ❎️ | ❌
| `realtime.NewTimer(d time.Duration)` | ❎️ | ❎️ | ❌
| `realtime.Tick(d time.Duration)` | ❎️ | ❎️ | ❌
| `realtime.NewTicker(d time.Duration)` | ❎️ | ❎️ | ❌