SshSession.setClock

void setClock(MonoTime delegate() clock)

Sets the monotonic clock used for keepalive, rekey, and handshake deadlines. Tests inject a deterministic clock; the default is the wall-clock MonoTime.currTime.

Parameters

clockZero-arg delegate returning the current monotonic time.