Could someone tell me why the following code is outputting 0 at the marked line?
0
It seems as if everything is correct but then when I try to get the re
You are printing integers and therefore it will round down the value.
timeLapseInterval / totalFrames will be (1 / frameRate) which will be < 1 unless frameRate is 1 (or 0 in which case you have an error dividing by 0)
timeLapseInterval / totalFrames
(1 / frameRate)