Use std::chrono if available AND if good enough.
Posted: Wed Jul 04, 2012 3:34 pm
I was thinking that maybe a compilation option would be added in Ogre to rely on std::chrono instead of the current time implementation.
Obviously, Ogre have to support older compilers that don't provide std::chrono so the current implementation should be ok.
However, it might be useful in some cases (like when trying a new multiprocessor hardware) to use the standard implementation of std::chrono because it solves the problme that the Ogre::Timer implementation on Windows do.
See: http://stackoverflow.com/questions/1089 ... t/11330600
So, I'm not sure if it's very useful but I think it could for some people.
What do you think?
It looks like it could be very easily implemented...
Obviously, Ogre have to support older compilers that don't provide std::chrono so the current implementation should be ok.
However, it might be useful in some cases (like when trying a new multiprocessor hardware) to use the standard implementation of std::chrono because it solves the problme that the Ogre::Timer implementation on Windows do.
See: http://stackoverflow.com/questions/1089 ... t/11330600
So, I'm not sure if it's very useful but I think it could for some people.
What do you think?
It looks like it could be very easily implemented...