Skip to content

Commit

Permalink
Fix rand_jitter on windows for older rust versions
Browse files Browse the repository at this point in the history
This is a similar issue to #720.
  • Loading branch information
Amanieu committed Jan 30, 2019
1 parent 11f51cb commit c037208
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rand_jitter/src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ pub fn get_nstime() -> u64 {

#[cfg(target_os = "windows")]
pub fn get_nstime() -> u64 {
use winapi;

unsafe {
let mut t = super::mem::zeroed();
winapi::um::profileapi::QueryPerformanceCounter(&mut t);
Expand Down

0 comments on commit c037208

Please sign in to comment.