System of Units

Harfang internally uses the Internal System of Units (SI) or metric system:

  • Distances are expressed in meters, see Mtr, Cm and Mm.
  • Angles are expressed in radians, see Rad and Deg.

Time is internally stored in nanoseconds as a 64 bit integer, many functions are available to convert to and from different units of time:

The current system time can be queried using time_now.