PR#4023 and GPR#68: add Unix.sleepf and improve Unix.sleep
Follow-up to commit 50648ed: update otherlibs/threads.master
parent
ce552ccf20
commit
ef8bc511ce
|
@ -472,6 +472,7 @@ external localtime : float -> tm = "unix_localtime"
|
|||
external mktime : tm -> float * tm = "unix_mktime"
|
||||
external alarm : int -> int = "unix_alarm"
|
||||
|
||||
let sleepf = delay
|
||||
let sleep secs = delay (float secs)
|
||||
|
||||
external times : unit -> process_times = "unix_times"
|
||||
|
|
Loading…
Reference in New Issue