How to calculate real time out of game

Have you checked the solution in this thread?