Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to get FPS in SFML 2 RC  (Read 3738 times)

0 Members and 1 Guest are viewing this topic.

Gonzilla

  • Newbie
  • *
  • Posts: 21
    • View Profile
How to get FPS in SFML 2 RC
« on: May 07, 2012, 10:09:29 pm »
I wonder how I get the frametime in SFML 2 RC. I looked at the C++ documentation and  there is a Clock class which is not in the .NET version!? Any other chance?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: How to get FPS in SFML 2 RC
« Reply #1 on: May 08, 2012, 01:48:52 am »
I wonder how I get the frametime in SFML 2 RC. I looked at the C++ documentation and  there is a Clock class which is not in the .NET version!? Any other chance?
Use System.Diagnostics.Stopwatch. Thats the entire reason the C++ clock class was not binded.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Gonzilla

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: How to get FPS in SFML 2 RC
« Reply #2 on: May 08, 2012, 11:11:38 am »
Argh! So simple 8) Thanks!