UFSM: Finite State Machine

Not sure what you mean.
FSM state is already running a time counter while that state is active…



Get Time returns the time in seconds that current state has been active.
In a OnUpdateXX state function you can check if ( Time > Y ) → change state.