Use std::chrono if available AND if good enough.

What it says on the tin: a place to discuss proposed new features.
Post Reply
User avatar
Klaim
Old One
Posts: 2565
Joined: Sun Sep 11, 2005 1:04 am
Location: Paris, France
x 56
Contact:

Use std::chrono if available AND if good enough.

Post by Klaim »

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...
Post Reply