Using time_fac is one way (multiply it by 16), but it's an abandoned variable.
Using this simple computation is another:
fps_display = pow(time_step, -1)*16;
This takes the reciprocal of the time_step variable and multiplies it by 16. This gives the frame rate. Then, just add a panel to point to this.
"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip
My 2D game - release on Jun 13th; My tutorials