Skip to content

Commit

Permalink
Merge pull request mirage#38 from hannesm/t-is-unit
Browse files Browse the repository at this point in the history
constrain type t to unit
  • Loading branch information
avsm authored Dec 27, 2018
2 parents f1d0f7c + ad4a35b commit 2e27c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mirage_clock.ml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
e.g. NTP. *)
module type PCLOCK = sig

include Mirage_device.S
include Mirage_device.S with type t = unit

val now_d_ps : t -> int * int64
(** [now_d_ps ()] is [(d, ps)] representing the POSIX time occuring
Expand All @@ -51,7 +51,7 @@ end
used for eg. profiling. *)
module type MCLOCK = sig

include Mirage_device.S
include Mirage_device.S with type t = unit

val elapsed_ns : t -> int64
(** [elapsed_ns ()] is a monotonically increasing count of
Expand Down

0 comments on commit 2e27c50

Please sign in to comment.