bogue

GUI library for ocaml, with animations, based on SDL2
Library bogue
Module Bogue . Timeout
Dependency graph
type t
val add : int -> ( unit -> unit ) -> t

add delay action will execute action () after the delay of delay ms.

  • returns

    the Timeout element.

    Warning: don't expect the delay to be exact at the ms. The precision cannot be better than what the framerate imposes, i.e. usually about 16ms.

val cancel : t -> unit

Cancel the Timeout.