next up previous contents
Next: MLton.ProcEnv Up: MLton Previous: MLton.GC   Contents


MLton.Itimer

signature MLTON_ITIMER =
   sig
      datatype which =
         Prof
       | Real
       | Virtual

      val set: which * {value: Time.time,
                        interval: Time.time} -> unit
      val whichSignal: which -> Posix.Signal.signal
   end

set (w, {value, interval})

set the interval timer (using setitimer) specified by w to the given value and interval.

whichSignal w

return the signal corresponding to w.