equal
deleted
inserted
replaced
57 |
57 |
58 (** Compiler-independent timing functions **) |
58 (** Compiler-independent timing functions **) |
59 |
59 |
60 use "ML-Systems/cpu-timer-gc.ML" |
60 use "ML-Systems/cpu-timer-gc.ML" |
61 |
61 |
|
62 (* bounded time execution *) |
|
63 |
|
64 (* FIXME proper implementation available? *) |
|
65 |
|
66 structure TimeLimit : sig |
|
67 exception TimeOut |
|
68 val timeLimit : Time.time -> ('a -> 'b) -> 'a -> 'b |
|
69 end = struct |
|
70 exception TimeOut |
|
71 fun timeLimit t f x = |
|
72 f x; |
|
73 end; |
62 |
74 |
63 (* ML command execution *) |
75 (* ML command execution *) |
64 |
76 |
65 (*Can one redirect 'use' directly to an instream?*) |
77 (*Can one redirect 'use' directly to an instream?*) |
66 fun use_text _ _ txt = |
78 fun use_text _ _ txt = |