getSampleDuration

fun SampleData.getSampleDuration(units: TimeUnit = TimeUnit.SECONDS): Long

Returns sample duration in specified units. Default units: TimeUnit.SECONDS.

Return

sample duration in specified units

Parameters

units

what units of time to return the sample duration