diff options
| author | Wesley Wiser <wwiser@gmail.com> | 2018-11-22 13:05:25 -0500 |
|---|---|---|
| committer | Wesley Wiser <wwiser@gmail.com> | 2018-11-24 21:38:35 -0500 |
| commit | dce1c4530e2707c338fe56b26a36797377f11514 (patch) | |
| tree | 2184726a4691138c85765766cc07a851575fef62 /src/rustllvm/RustWrapper.cpp | |
| parent | b319715456c08097f2cd936da309ed6e8aec2843 (diff) | |
| download | rust-dce1c4530e2707c338fe56b26a36797377f11514.tar.gz rust-dce1c4530e2707c338fe56b26a36797377f11514.zip | |
[Windows] Work around non-monotonic clocks in the self-profiler
On Windows, the high-resolution timestamp api doesn't seem to always be monotonic. This can cause panics when the self-profiler uses the `Instant` api to find elapsed time. Work around this by detecting the case where now is less than the start time and just use 0 elapsed ticks as the measurement. Fixes #51648
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
