mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2026-04-23 00:07:15 +08:00
1a4c38c37d
ChangedAt returns the time of the most recent observable state change — text, selection, focus, or composition. Useful for cache invalidation, autosave throttling, idle detection, and similar change-detection tasks. The value is strictly monotonically increasing: back-to-back mutations on coarse-clock platforms are clamped forward by 1ns so each mutation yields a unique timestamp usable as a cache key. No-op mutations (SetSelection to the current selection, empty ReplaceText over a zero-width range, Focus/Blur that don't change focus, Undo/Redo with nothing to apply) do not advance ChangedAt. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>