Hello JGO

Today I've been constructing a Game Loop so that I can calculate some statistics of it and such
Information:
The Game Loop is a
thread.
Game run method layout:
1 2 3 4 5 6 7 8 9 10 11 12 13
| public void run() { while (!isDestroyed()) { update(); render(); sleep(10L, true); debug(); } } |
My Question is:Where in my game thread would I call the 'updateFPS()' method?
Before sleeping?, before painting?, after painting?
I've never known this lol, and now that I'm constructing a good game thread I'd like to ^__^.
Any feedback would be helpful thanks
