Overview  Index  Help 
Standard ML Basis Library

TIME

All Known Implementing Modules:

TimeImpTimeInternalTimer.Time


signature TIME =
sig
  eqtype time
  exception Time
  val zeroTime : time
  val fromReal : real -> time
  val toReal : time -> real
  val toSeconds : time -> LargeInt.int
  val fromSeconds : LargeInt.int -> time
  val toMilliseconds : time -> LargeInt.int
  val fromMilliseconds : LargeInt.int -> time
  val toMicroseconds : time -> LargeInt.int
  val fromMicroseconds : LargeInt.int -> time
  val + : time * time -> time
  val - : time * time -> time
  val compare : time * time -> order
  val < : time * time -> bool
  val <= : time * time -> bool
  val > : time * time -> bool
  val >= : time * time -> bool
  val now : unit -> time
  val toString : time -> string
  val fromString : string -> time option
  val fmt : int -> time -> string
  val scan : (char, 'a) StringCvt.reader -> (time, 'a) StringCvt.reader
end

 
Type detail

time

eqtype time

     
Value detail

zeroTime

val zeroTime : time


fromReal

val fromReal : real -> time


toReal

val toReal : time -> real


toSeconds

val toSeconds : time -> LargeInt.int


fromSeconds

val fromSeconds : LargeInt.int -> time


toMilliseconds

val toMilliseconds : time -> LargeInt.int


fromMilliseconds

val fromMilliseconds : LargeInt.int -> time


toMicroseconds

val toMicroseconds : time -> LargeInt.int


fromMicroseconds

val fromMicroseconds : LargeInt.int -> time


+

val + : time * time -> time


-

val - : time * time -> time


compare

val compare : time * time -> order


<

val < : time * time -> bool


<=

val <= : time * time -> bool


>

val > : time * time -> bool


>=

val >= : time * time -> bool


now

val now : unit -> time


toString

val toString : time -> string


fromString

val fromString : string -> time option


fmt

val fmt : int -> time -> string


scan

val scan : (char, 'a) StringCvt.reader -> (time, 'a) StringCvt.reader

 
Exception detail

Time

exception Time


Overview  Index  Help 
Standard ML Basis Library

This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.

Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.

Permission is granted for internet users to make one paper copy for their own personal use. Further hardcopy reproduction is strictly prohibited. Permission to distribute the HTML document electronically on any medium other than the internet must be requested from the copyright holders by contacting the editors. Printed versions of the SML Basis Manual are available from Cambridge University Press. To order, please visit www.cup.org (North America) or www.cup.cam.ac.uk (outside North America).