1 (* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
12 type int = Pervasive.LargeInt.int
18 self: {utime: t, (* user time of process *)
19 stime: t (* system time of process *)
21 children: {utime: t, (* user time of terminated child processes *)
22 stime: t (* system time of terminated child processes *)
24 gc: {utime: t, (* user time of gc *)
25 stime: t (* system time of gc *)
32 val fromString: string -> t option
33 val fromMicroseconds: int -> t
34 val fromMilliseconds: int -> t
35 val fromReal: real -> t
39 val output: t * Out.t -> unit
41 val times: unit -> times
42 val timeThunk: (unit -> unit) -> t
43 val toMicroseconds: t -> int
44 val toMilliseconds: t -> int
46 val toSeconds: t -> int
47 val toString: t -> string