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

Author Topic: ElapsedTime on 2.0RC?  (Read 3722 times)

0 Members and 2 Guests are viewing this topic.

Ferdows

  • Newbie
  • *
  • Posts: 2
    • View Profile
ElapsedTime on 2.0RC?
« on: November 30, 2012, 07:58:09 am »
Hey I'm new to C++ and SFML and I started a couple days ago on 1.6 but since I've been on the forums everyone says to use 2.0 so I decided to switch. Anyways, on 1.6, to get elapsed frame Time you can call

float elapsedTime = window.GetFrameTime();

But that function on longer exists on 2.0, and I haven't been able to find in the documentation. Where can I get the equivalent of this function for 2.0? Thanks in advance for any help.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: ElapsedTime on 2.0RC?
« Reply #1 on: November 30, 2012, 08:01:51 am »
sf::Clock::getElapsedTime()
Laurent Gomila - SFML developer

Ferdows

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: ElapsedTime on 2.0RC?
« Reply #2 on: November 30, 2012, 08:04:15 am »
Thank you. By the way, I just realized that I posted this on the wrong category, I meant to post it in window. Sorry about that.

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: ElapsedTime on 2.0RC?
« Reply #3 on: November 30, 2012, 08:00:49 pm »
Or you could have used the search engine.
It has already been asked and answered many times. :-\

 

anything