wio 0.2.0

Windows IO wrapper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright © 2015, Peter Atashian
// Licensed under the MIT License <LICENSE.md>
use {k32};

pub fn frequency() -> i64 {
    let mut freq = 0;
    unsafe { k32::QueryPerformanceFrequency(&mut freq) };
    freq
}
pub fn counter() -> i64 {
    let mut count = 0;
    unsafe { k32::QueryPerformanceCounter(&mut count) };
    count
}