package alt-ergo-lib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module AltErgoLib.MyUnixSource

Unix wrapper

This module defines some wrappers around Unix function, in order to more easily maintain compatibility when compiling to javascript.

Sourceval cur_time : unit -> float

Returns the current time. *

Sourceval set_timeout : is_gui:bool -> float -> unit

Set a timeout, using Unix timers. If is_gui then the timer raises Unix.interval_timer.ITIMER_REAL, else raises Unix.interval_timer.ITIMER_VIRTUAL. No-op on javascript.

Sourceval unset_timeout : is_gui:bool -> unit

Unset the previously set timer.

OCaml

Innovation. Community. Security.