reliable_interval_timer 1.0.2 copy "reliable_interval_timer: ^1.0.2" to clipboard
reliable_interval_timer: ^1.0.2 copied to clipboard

A timer that produces ticks within a given interval, accurate to the millisecond.

A timer that produces ticks within a given interval, accurate to the millisecond.

Features #

ReliableIntervalTimer class provides you a periodic timer that has the exact same duration between ticks, accurate to the millisecond. The timer is run inside an isolate.

Usage #

ReliableIntervalTimer(
    interval: Duration(milliseconds: 100),
    callback: (elapsedMilliseconds) => print('elapsedMilliseconds: $elapsedMilliseconds');,
);

Additional information #

After doing some testing, I figured out that this will run reliably on client devices, on server side I encountered issues with inaccurate timings.

6
likes
130
pub points
82%
popularity

Publisher

unverified uploader

A timer that produces ticks within a given interval, accurate to the millisecond.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on reliable_interval_timer