I am currently writing an SDL2 game engine, and it works pretty good so far, but there is one problem that SDL2 can't solve: a decent timer. Right now, it uses the default SDL2 timer stuff, but it has only millisecond support; and this is not very good for measuring FPS. The main problem is there is nothing in between 500FPS and 1000FPS, so it's one or the other. Obviously, potential gamers would want something a little more accurate than that, and getting accurate averages from those numbers is near impossible.
So my question is is there any clock libraries that can provide nanosecond/microsecond (Preferably the former) time measuring on Windows, Mac, and Linux? (Maybe even Android and iOS, but that is a bit of a stretch.)
If not, is there different libraries for each OS I could just #if WINDOWS
or whatever to still get nanosecond/microsecond timing?
EDIT: A comment pointed out that some more information should be here, so I am using C++ 14, and will be on Mac and Linux as well. On Windows, I use MSVC (Visual Studio) and I plan to use XCode on Mac, and not too sure for Linux. Will as a friend.