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

Author Topic: sf::Clock Class: Time elapsed, in milliseconds please  (Read 28144 times)

0 Members and 1 Guest are viewing this topic.

aisman

  • Newbie
  • *
  • Posts: 25
    • View Profile
sf::Clock Class: Time elapsed, in milliseconds please
« on: April 20, 2008, 12:03:22 am »
A additional faster Time elapse will be usefull.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Clock Class: Time elapsed, in milliseconds please
« Reply #1 on: April 20, 2008, 07:27:07 am »
Sorry, I don't understand. What do you want exactly ?
Laurent Gomila - SFML developer

aisman

  • Newbie
  • *
  • Posts: 25
    • View Profile
sf::Clock Class: Time elapsed, in milliseconds please
« Reply #2 on: April 20, 2008, 08:06:47 am »
That is what I found in the online help:

The return is Time elased, in seconds (Seconds is maybe not fine enough).

Code: [Select]
float sf::Clock::GetElapsedTime  (   )  const
Get the time elapsed since last reset.

Returns:
Time elapsed, in seconds

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Clock Class: Time elapsed, in milliseconds please
« Reply #3 on: April 20, 2008, 08:23:35 am »
I still don't understand, sorry :|
Laurent Gomila - SFML developer

aisman

  • Newbie
  • *
  • Posts: 25
    • View Profile
sf::Clock Class: Time elapsed, in milliseconds please
« Reply #4 on: April 20, 2008, 08:49:05 am »
Quote from: "Laurent"
I still don't understand, sorry :|

Oh dear, ;-)

It returns the elapsed time in seconds. I think milliseconds will be also a  good idea.

However.
I can work with it.  Not so important for me at the moment´.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Clock Class: Time elapsed, in milliseconds please
« Reply #5 on: April 20, 2008, 08:55:13 am »
It returns a float, not an integer. If you want milliseconds just multiply by 1000.
Laurent Gomila - SFML developer

aisman

  • Newbie
  • *
  • Posts: 25
    • View Profile
sf::Clock Class: Time elapsed, in milliseconds please
« Reply #6 on: April 20, 2008, 08:56:41 am »
Quote from: "Laurent"
It returns a float, not an integer. If you want milliseconds just multiply by 1000.

Ok.

But an (internal) work with integer will be faster?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
sf::Clock Class: Time elapsed, in milliseconds please
« Reply #7 on: April 20, 2008, 11:06:11 am »
No.
Laurent Gomila - SFML developer