Skip to content

Commit ba84875

Browse files
committed
Merge pull request #4 from samdoshi/duration
duration API changes
2 parents 8676608 + 0d8da8e commit ba84875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/time.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub enum PtError {
2323
of the pause may be rounded to the nearest or next clock tick
2424
as determined by resolution in Pt_Start().
2525
*/
26-
pub fn Pt_Sleep(duration: i32) {
26+
pub fn Pt_Sleep(duration: i64) {
2727
timer::sleep(duration::Duration::milliseconds(duration));
2828
}
2929

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

0 commit comments

Comments
 (0)