@dialstack/sdk / react / useCallDuration
Function: useCallDuration()
function useCallDuration(call, intervalMs?): string;
Defined in: sdk/src/react/softphone/hooks/useCallDuration.ts:18
Returns the formatted elapsed time for call, ticking every intervalMs
(default 500ms — twice a second so the readout never visibly lags the wall
clock). Returns 0:00 when there is no active call.
Parameters
call
Call | null
intervalMs?
number = 500
Returns
string