Rename ofGetLastFrameTime
Author: HalfdanJCreated Nov 18, 2015Updated Jun 12, 2026
I had for some time wondered why there was no ofGetDeltaTime() that returns the delta time from last from to current frame, until I now realized that ofGetLastFrameTime() does exactly this (after looking in its source).
In my view it has a very bad name, i expected to get the absolute time of the last frame (I was about to calculate the delta time my self using ofGetElapsedTimef() - ofGetLastFrameTime() when i realized my mistake).
Am I the only misunderstanding its name?
Source: openframeworks/openFrameworks