SFML community forums

Help => System => Topic started by: Ferdows on November 30, 2012, 07:58:09 am

Title: ElapsedTime on 2.0RC?
Post by: Ferdows 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.
Title: Re: ElapsedTime on 2.0RC?
Post by: Laurent on November 30, 2012, 08:01:51 am
sf::Clock::getElapsedTime()
Title: Re: ElapsedTime on 2.0RC?
Post by: Ferdows 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.
Title: Re: ElapsedTime on 2.0RC?
Post by: G. 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. :-\