SFML community forums

Help => General => Topic started by: forrestcupp on July 31, 2009, 10:38:10 pm

Title: Is clock memory/processor intensive?
Post by: forrestcupp 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?
Title: Is clock memory/processor intensive?
Post by: Laurent on July 31, 2009, 10:45:06 pm
Not at all. It's just performing a simple system call when you request GetElapsedTime().
Title: Is clock memory/processor intensive?
Post by: forrestcupp 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.