timespec on windows compilers

后端 未结 2 1816
北荒
北荒 2021-01-22 16:54

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

2条回答
  •  不思量自难忘°
    2021-01-22 17:42

    The function GetTickCount is usually used for that.

    Also a similiar thread: C++ timing, milliseconds since last whole second

提交回复
热议问题