0 Members and 2 Guests are viewing this topic.
Ok, the problem is, to write an own clock/stopwatch class I can't use the existing sf::Clock since the member myStartTime is private. I should always use GetElapsedTime()... Isn't that a little bit waste of performance?
And besides, algorithms like the Clock functions should not be very time-critical... I think, for example graphic rendering requires a lot more performance, doesn't it?
BTW: Bist du der Nexus, der im Forum von c-plusplus.de unterwegs ist?
Always use the getters and setters provided... if you find they are a performance drain then we should bug Laurent to change them to inline functions instead Data members should stay private so that we can't mess around with SFML's private data and possibly break the clock