@magmacomputing/tempo-plugin-ticker
v2.3.0
Published
Tempo plugin that provides a high-performance continuous execution loop (Ticker) based on temporal mathematics.
Maintainers
Readme
@magmacomputing/tempo-plugin-ticker
This is a Community plugin for the Tempo library that provides a high-performance continuous execution loop (Ticker) based on temporal mathematics.
👉 View the full documentation on our GitHub Pages
Installation
npm install @magmacomputing/tempo-plugin-tickerUsage
import { Tempo } from '@magmacomputing/tempo';
import { TickerPlugin } from '@magmacomputing/tempo-plugin-ticker';
Tempo.init({
extends: [TickerPlugin]
});
// You can now access Ticker-based execution loops through the Tempo API:
const ticker = Tempo.ticker({ seconds: 1 }, (t, stop) => {
console.log('Tick:', t.format('isoTime'));
});Documentation
For full API reference, advanced options, and detailed usage patterns, please visit the official Ticker Plugin Documentation ↗.
Licensing
This is a Community plugin. It is completely free and open-source for personal and commercial use under the MIT license.
