diff options
| author | filliatr | 1999-09-07 12:51:05 +0000 |
|---|---|---|
| committer | filliatr | 1999-09-07 12:51:05 +0000 |
| commit | 691d37218de76b0bf8084653ee85ddae43ff74a8 (patch) | |
| tree | f766244d376498aad4e485b93204f534dd922e2e /lib/util.ml | |
| parent | 2fe077a604a17e44b000ffe76efa08fa7a903719 (diff) | |
mise en place commandes minicoq
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@42 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/util.ml')
| -rw-r--r-- | lib/util.ml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util.ml b/lib/util.ml index fb50d1e4e5..deb810cdd1 100644 --- a/lib/util.ml +++ b/lib/util.ml @@ -259,6 +259,12 @@ type ('a,'b) union = Inl of 'a | Inr of 'b module Intset = Set.Make(struct type t = int let compare = compare end) +let option_app f = function + | None -> None + | Some x -> Some (f x) + +(* Time stamps. *) + type time_stamp = float let get_time_stamp () = Unix.time() |
