time.time - ICE 0.1 API documentation

ICE 0.1 API documentation

# time.time

Time functions.

real getTime();

  Returns time since program start in seconds.

string timeString(const real time, const bool hours = false);

  Converts a time value to a string in format mm:ss, or hh:mm:ss if hours is true.

  Seconds are always represented by two digits, even if the first one is zero, e.g. 01 Minutes are shown without the leading zero if hours is false (default), otherwise same as seconds. Hours are always shown without leading zeroes.

  Parameters:

  real time | Time value to convert.
  bool hours | Show hours (as opposed to only minutes, seconds).

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.