diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-03-07 10:54:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-07 10:54:13 -0500 |
| commit | a7792e5ff83523142230951ac7eacbd7685dc40b (patch) | |
| tree | a7531c65e2ddec1122fc071d44c8106c48352ce3 /src/common/CMakeLists.txt | |
| parent | 6d61430311d57fa4338bcf33cdcbb04a9a2f16c4 (diff) | |
| parent | 376a414f5bc6d27e5e0fbda323caf5520436bf39 (diff) | |
Merge pull request #9889 from Morph1984/time-is-ticking
core_timing: Reduce CPU usage on Windows
Diffstat (limited to 'src/common/CMakeLists.txt')
| -rw-r--r-- | src/common/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 56b247ac4..58ff5f2f3 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -113,6 +113,8 @@ add_library(common STATIC socket_types.h spin_lock.cpp spin_lock.h + steady_clock.cpp + steady_clock.h stream.cpp stream.h string_util.cpp @@ -142,6 +144,14 @@ add_library(common STATIC zstd_compression.h ) +if (WIN32) + target_sources(common PRIVATE + windows/timer_resolution.cpp + windows/timer_resolution.h + ) + target_link_libraries(common PRIVATE ntdll) +endif() + if(ARCHITECTURE_x86_64) target_sources(common PRIVATE |
