I have a small integer value and I want to convert it into CMTime.
The problem is that
CMTime(value: _ , timeScale: _)
or
CMTimeMakeWithSeconds(value: _ , timeScale: _)
will always return the floor so that time always equals 0.0 seconds
let smallValue = 0.0401588716
let frameTime = CMTime(Int64(smallValue) , timeScale: 1)
//frameTime is 0.0 seconds because of Int64 conversion
let frameTimeInSeconds = CMTimeMakeWithSeconds(smallValue , timeScale: 1)
// frameTimeInSeconds also returns 0.0 seconds.