Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature for time querying in the
cxplat
library, including both precise and approximate time queries with options to include or exclude suspended time. The changes span multiple files to integrate this new functionality.Key changes include:
New Time Query Functionality:
cxplat/inc/cxplat_time.h
: Added declarations forcxplat_query_time_since_boot_precise
andcxplat_query_time_since_boot_approximate
functions.cxplat/src/cxplat_winkernel/time_winkernel.c
: Implemented the time query functions for the winkernel platform.cxplat/src/cxplat_winuser/time_winuser.cpp
: Implemented the time query functions for the winuser platform.Integration into Build System:
cxplat/cxplat_test/CMakeLists.txt
,cxplat/src/cxplat_winkernel/CMakeLists.txt
,cxplat/src/cxplat_winuser/CMakeLists.txt
: Addedcxplat_time_test.cpp
,time_winkernel.c
, andtime_winuser.cpp
to the respective build configurations. [1] [2] [3]cxplat/cxplat_test/cxplat_test.vcxproj
,cxplat/src/cxplat_winkernel/cxplat_winkernel.vcxproj
,cxplat/src/cxplat_winuser/cxplat_winuser.vcxproj
: Updated project files to include new source files for compilation. [1] [2] [3]Test Cases:
cxplat/cxplat_test/cxplat_time_test.cpp
: Added test cases to verify the new time query functions.Header File Updates:
cxplat/inc/cxplat.h
: Included the newcxplat_time.h
header file.