I have coded a Time class that calculates some useful data like the fps and the duration of the last frame. The problem is that it has to be updated each frame. Of course I can have the time class extend from the Actor class and add it to a world, but I don’t want to do so. In fact, I would like to have everything in the time class be static, and now the only thing that has to be done is to call „Time.update()“ exactly once per frame (not more!).
The only way I could imagine that working is if the Time class can extend from an internal greenfoot class and overrides a static method that is already being called once per frame. I just need to know that class if there is one.