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

Author Topic: Is clock memory/processor intensive?  (Read 2220 times)

0 Members and 1 Guest are viewing this topic.

forrestcupp

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Is clock memory/processor intensive?
« on: July 31, 2009, 10:38:10 pm »
Would it slow things down a lot or make my program bloated to have 10 sf::Clocks at one time?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Is clock memory/processor intensive?
« Reply #1 on: July 31, 2009, 10:45:06 pm »
Not at all. It's just performing a simple system call when you request GetElapsedTime().
Laurent Gomila - SFML developer

forrestcupp

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Is clock memory/processor intensive?
« Reply #2 on: August 01, 2009, 04:06:39 am »
Thank you.

That's good to know.  I actually figured out a better way to implement what I'm doing with only one clock.  It's still good to know, though.