Popularity
1.3
Declining
Activity
0.0
Stable
0
2
0
Monthly Downloads: 3
Programming language: Haskell
License: MIT License
Tags:
Time
Latest version: v0.2.0.1
fixed-timestep alternatives and similar packages
Based on the "Time" category.
Alternatively, view fixed-timestep alternatives based on common mentions on social networks and blogs.
-
timezone-olson
A pure Haskell parser and renderer for binary Olson timezone files -
distance-of-time
Generate readable distances between times. -
iso8601-time
Convert to/from the ISO 8601 time format in Haskell -
time-locale-compat
Compatibility of TimeLocale between old-locale and time-1.5 -
duration
A tiny compile-time time utility library, inspired by zeit/ms. -
timezone-olson-th
Load Olson timezone files at compile time -
japanese-calendar
Data type of Japanese Calendar (Wareki). -
flick-duration
Provides Duration; a type to contain amounts of time
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Promo
www.influxdata.com
Do you think we are missing an alternative of fixed-timestep or a related project?
README
fixed-timestep
Pure Haskell library to run an action repeatedly, a specific amount of times per second.
Internal timekeeping is done in flicks, a unit of time equal to precisely 1/705600000 of a second.
Basic usage:
λ> import Data.Time.Clock
λ> import Time.Repeatedly
λ> repeatedly 1 (print =<< getCurrentTime)
2019-03-13 21:14:36.826248 UTC
2019-03-13 21:14:37.8282926 UTC
2019-03-13 21:14:38.8327692 UTC
2019-03-13 21:14:39.8359494 UTC
2019-03-13 21:14:40.8374415 UTC
^CInterrupted.
Using async
, you can repeat multiple actions independently, and also cancel them:
λ> import Data.Time.Clock
λ> import Control.Concurrent.Async
λ> import Time.Repeatedly
λ> printer <- asyncRepeatedly 1 (print =<< getCurrentTime)
2019-03-13 21:21:27.5228834 UTC
2019-03-13 21:21:28.523892 UTC
2019-03-13 21:21:29.5283634 UTC
2019-03-13 21:21:30.5313565 UTC
2019-03-13 21:21:31.535904 UTC
2019-03-13 21:21:32.5373828 UTC
2019-03-13 21:21:33.5393834 UTC
2019-03-13 21:21:34.5408811 UTC
cancel printer