Skip to content

Commit

Permalink
Merge pull request #4 from samdoshi/duration
Browse files Browse the repository at this point in the history
duration API changes
  • Loading branch information
musitdev committed Aug 31, 2014
2 parents 8676608 + 0d8da8e commit ba84875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub enum PtError {
of the pause may be rounded to the nearest or next clock tick
as determined by resolution in Pt_Start().
*/
pub fn Pt_Sleep(duration: i32) {
pub fn Pt_Sleep(duration: i64) {
timer::sleep(duration::Duration::milliseconds(duration));
}

Expand All @@ -47,7 +47,7 @@ impl PtTimer {
return value: timer always start
*/
pub fn Pt_start<T:Send> (resolution : i32, userData : T , callback: extern "Rust" fn(u64, &mut T)) -> PtTimer {
pub fn Pt_start<T:Send> (resolution : i64, userData : T , callback: extern "Rust" fn(u64, &mut T)) -> PtTimer {
let (newchan, newport): (Sender<String>, Receiver<String>) = channel();
let ptimer = PtTimer {
channel: newchan,
Expand Down

0 comments on commit ba84875

Please sign in to comment.