Main Content

getStreamTime

Get stream time in seconds

Since R2025a

    Description

    tsec = getStreamTime(as) returns the amount of time in seconds that the audiostreamer has been streaming.

    tsec = getStreamTime(as,"reset") returns the stream time and resets the timer to zero.

    Input Arguments

    collapse all

    The audiostreamer object to time.

    Output Arguments

    collapse all

    The stream time in seconds, returned as a scalar.

    Version History

    Introduced in R2025a