Extend packet header with frame processing latency

This commit is contained in:
ns6089
2023-04-18 19:03:52 +03:00
committed by Cameron Gutman
parent 590733b313
commit bd533dc31b
9 changed files with 101 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
#ifndef SUNSHINE_WINDOWS_MISC_H
#define SUNSHINE_WINDOWS_MISC_H
#include <chrono>
#include <string_view>
#include <windows.h>
#include <winnt.h>
@@ -9,6 +11,12 @@ namespace platf {
print_status(const std::string_view &prefix, HRESULT status);
HDESK
syncThreadDesktop();
int64_t
qpc_counter();
std::chrono::nanoseconds
qpc_time_difference(int64_t performance_counter1, int64_t performance_counter2);
} // namespace platf
#endif