view clock.urs @ 11:ccd0a169e827

Clock corrects for skew, so that it matches server time (if an RPC round-trips fast enough)
author Adam Chlipala <adam@chlipala.net>
date Sun, 24 Jul 2011 14:51:16 -0400
parents 0337f88f2efc
children
line wrap: on
line source
(** Reactive view of the current time *)

type t

val create : int -> transaction t
(* Specify the clock resolution, in milliseconds. *)

val start : t -> transaction {}
(* Call this in client-side code (e.g., 'onload' handler) to begin. *)

val signal : t -> signal time