TermUI.Event.Tick (TermUI v0.2.0)

View Source

Timer tick event.

Represents a periodic timer event for animations and time-based updates.

Summary

Functions

Creates a new tick event.

Returns the tick rate in Hz (ticks per second).

Types

t()

@type t() :: %TermUI.Event.Tick{interval: pos_integer(), timestamp: integer()}

Functions

new(interval, opts \\ [])

Creates a new tick event.

rate(tick)

Returns the tick rate in Hz (ticks per second).