For a winapi wrapper I want to use chrono for a duration given to the call. The code example:
bool setTimer(std::chrono::duration
You can use the following code:
auto now = chrono::high_resolution_clock::now(); auto timeMillis = chrono::duration_cast(now.time_since_epoch()).count();