view clock.urs @ 33:2e7f8f7d71d4

Update for Ur/Web's new tag name resolution
author Adam Chlipala <adam@chlipala.net>
date Thu, 21 Nov 2013 16:12:17 -0500
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