aboutsummaryrefslogtreecommitdiff
path: root/lib/system.ml
diff options
context:
space:
mode:
authorfilliatr1999-09-08 09:27:56 +0000
committerfilliatr1999-09-08 09:27:56 +0000
commit384b03f93d8036d4eee6764f5db236727af81b76 (patch)
tree2fe2b9d08ed2fe1d6ae3e86854cbc818c8f8824c /lib/system.ml
parent97b2897d343adf1d6da0ae0140a8ce990af66f82 (diff)
time stamps dans System
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@54 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/system.ml')
-rw-r--r--lib/system.ml13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/system.ml b/lib/system.ml
new file mode 100644
index 0000000000..fe0efa0737
--- /dev/null
+++ b/lib/system.ml
@@ -0,0 +1,13 @@
+
+(* $Id$ *)
+
+(* Time stamps. *)
+
+type time_stamp = float
+
+let get_time_stamp () = Unix.time()
+
+let compare_time_stamps t1 t2 =
+ let dt = t2 -. t1 in
+ if dt < 0.0 then -1 else if dt = 0.0 then 0 else 1
+