-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Consolidate QueryPerformanceCounter/GetTickCount usages to minipal/time.h #115408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 46 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
9cf6494
createdump
huoyaoyuan e8c9873
random
huoyaoyuan 4f61026
jit
huoyaoyuan aa05c17
timers
huoyaoyuan 10f69e0
stresslog and ep
huoyaoyuan 9e7e1fc
misc vm
huoyaoyuan e619b68
nativeaot
huoyaoyuan 3d32622
gc
huoyaoyuan a1e581c
Cleanup from pal
huoyaoyuan 26b3cb0
SystemNative
huoyaoyuan e5e54be
Don't use implicit cast in random.h
huoyaoyuan d9ad203
format
huoyaoyuan 2258a58
Add explicit cast
huoyaoyuan fa9b919
Add low resolution tick to minipal
huoyaoyuan 08fb866
Share implementation with gcenv
huoyaoyuan 2ed4a92
Cleanup GetTickCount64
huoyaoyuan 76f28db
Cleanup GetTickCount
huoyaoyuan aad6655
Use direct P/Invoke from managed
huoyaoyuan 5060e16
Cleanup pal
huoyaoyuan f571cc9
Adapt more platforms from mono_msec_boottime
huoyaoyuan b4ff716
Merge branch 'main' into minipal-time
huoyaoyuan 48e2a1e
Fix P/Invoke
huoyaoyuan b8e71be
Fix implicit conversion
huoyaoyuan 609b026
Fix build
huoyaoyuan 41c488b
Cleanup cmake configs
huoyaoyuan 7558373
Consolidate ep-mono
huoyaoyuan 5680137
Move managed entry to UnixOrBrowser
huoyaoyuan 6fc8458
Fix gcc build
huoyaoyuan c3d2a5f
Link minipal unconditionally from gc
huoyaoyuan 82747ab
Fix declaration
huoyaoyuan f3f984c
Cleanup mach_absolute_time
huoyaoyuan dcc7de1
Merge branch 'main' into minipal-time
huoyaoyuan 5c8404c
Call GetTickCount for 32bit
huoyaoyuan d566884
Revert "Call GetTickCount for 32bit"
huoyaoyuan 7905654
Update naming
huoyaoyuan d4a70d9
Update sign for GetTimestamp
huoyaoyuan 08b88f3
Cleanup mono-time
huoyaoyuan c21c42f
Fix
huoyaoyuan e7fb644
Fix P/Invoke definition
huoyaoyuan cfcd1d1
Disable tests
huoyaoyuan 1ac8829
Revert "Disable tests"
huoyaoyuan 5b67573
Disable CLOCK_MONOTONIC_COARSE on wasm
huoyaoyuan fb68fde
Try another approach
huoyaoyuan 9a1136d
Update assert
huoyaoyuan abda30f
Use __EMSCRIPTEN__ instead
huoyaoyuan 19a9f76
Use #error for unsupported platform
huoyaoyuan f87efa8
Update display in createdump
huoyaoyuan aec8e75
Merge branch 'main' into minipal-time
huoyaoyuan 43bb2cf
Fix misdeleted comment
huoyaoyuan e90c295
Fix invocation
huoyaoyuan afa22fe
Add assert
huoyaoyuan 0cea29e
Remove unused constant
huoyaoyuan a302ed5
Merge branch 'main' into minipal-time
jkotas 519daf7
Apply suggestions from code review
huoyaoyuan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,3 @@ | ||
check_function_exists(process_vm_readv HAVE_PROCESS_VM_READV) | ||
|
||
check_symbol_exists( | ||
clock_gettime_nsec_np | ||
time.h | ||
HAVE_CLOCK_GETTIME_NSEC_NP) | ||
|
||
check_cxx_source_runs(" | ||
#include <stdlib.h> | ||
#include <time.h> | ||
#include <sys/time.h> | ||
|
||
int main() | ||
{ | ||
int ret; | ||
struct timespec ts; | ||
ret = clock_gettime(CLOCK_MONOTONIC, &ts); | ||
|
||
exit(ret); | ||
}" HAVE_CLOCK_MONOTONIC) | ||
|
||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.