Implement a basic cache dumper
[khatus.git] / src / ocaml / lib / khatus_time.ml
CommitLineData
c6a7396e
SK
1module Span = struct
2 type t = float
3
4 let of_string s =
5 float_of_string s
6
7 let is_gt_or_eq t1 t2 =
8 t1 >= t2
9end
10
11type t = float
12
13let init = 0.0
14
15let diff t0 t1 =
16 t1 -. t0
17
18let to_string t =
19 Printf.sprintf "%f" t
20 |> String.split_on_char '.'
21 |> List.hd
22
23let of_string s =
24 float_of_string s
This page took 0.026701 seconds and 4 git commands to generate.