Handle a signal: Difference between revisions

(→‎{{header|Perl}}: added ocaml)
Line 216:
OCaml's <tt>Unix.sleep</tt> doesn't handle non-integral arguments, so this program prints a number every second.
 
<lang ocaml>#load "unix.cma";; (* for sleep and gettimeofday; not needed for the signals stuff per se *)
 
let start = Unix.gettimeofday ();;
Anonymous user