On posix it is possible to use timespec to calculate accurate time length (like seconds and milliseconds). Unfortunately I need to migrate to windows with Visual Studio compiler
The function GetTickCount is usually used for that.
Also a similiar thread: C++ timing, milliseconds since last whole second