+
Point of view
All features
expanded class MICROSECOND_TIME
Summary
Date and time facilities (like TIME) plus an extra microsecond information.
Direct parents
Insert list: COMPARABLE, HASHABLE, TIME_HANDLER
Class invariant
Overview
Features
{ANY}
{ANY}
{}
{ANY}
  • infix "<=" (other: MICROSECOND_TIME): BOOLEAN
    Is Current less than or equal other?
  • infix ">" (other: MICROSECOND_TIME): BOOLEAN
    Is Current strictly greater than other?
  • infix ">=" (other: MICROSECOND_TIME): BOOLEAN
    Is Current greater than or equal than other?
  • in_range (lower: MICROSECOND_TIME, upper: MICROSECOND_TIME): BOOLEAN
    Return True if Current is in range [lower..upper]
    See also min, max, compare.
  • compare (other: MICROSECOND_TIME): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • three_way_comparison (other: MICROSECOND_TIME): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • min (other: MICROSECOND_TIME): MICROSECOND_TIME
    Minimum of Current and other.
  • max (other: MICROSECOND_TIME): MICROSECOND_TIME
    Maximum of Current and other.
  • bounded_by (a_min: MICROSECOND_TIME, a_max: MICROSECOND_TIME): MICROSECOND_TIME
    A value that is equal to Current if it is between the limits set by a_min and a_max.
time: TIME
writable attribute
{ANY}
The normal TIME with second accuracy.
microsecond: INTEGER_32
writable attribute
{ANY}
Extra information in number of microseconds in range 0 ..
update
effective procedure
{ANY}
Update Current with the current system clock.
set_time (t: TIME)
effective procedure
{ANY}
set_microsecond (microsec: INTEGER_32)
effective procedure
{ANY}
To set microsecond in range 0 ..
infix "+" (s: REAL_64): MICROSECOND_TIME
effective function
{ANY}
Add s seconds (2.476 is 2 seconds and 476 milliseconds)
add_second (s: INTEGER_32)
effective procedure
{ANY}
Add s seconds to Current.
add_millisecond (millisecond: INTEGER_32)
effective procedure
{ANY}
Add millisecond milliseconds.
add_microsecond (microsec: INTEGER_32)
effective procedure
{ANY}
Add microsec microseconds
elapsed_seconds (other: MICROSECOND_TIME): REAL_64
effective function
{ANY}
Elapsed time in seconds from Current to other with sub-second precision.
is_equal (other: MICROSECOND_TIME): BOOLEAN
effective function
{ANY}
Is other attached to an object considered equal to current object?
infix "<" (other: MICROSECOND_TIME): BOOLEAN
effective function
{ANY}
Is Current strictly less than other?
hash_code: INTEGER_32
effective function
{ANY}
The hash-code value of Current.
out: STRING
effective function
{ANY}
Create a new string containing terse printable representation of current object.
timestamp: INTEGER_64
effective function
{ANY}
basic_microsecond_time: INTEGER_64
{}
basic_microsecond_microsecond: INTEGER_32
{}
basic_microsecond_update
{}
infix "<=" (other: MICROSECOND_TIME): BOOLEAN
effective function
{ANY}
Is Current less than or equal other?
infix ">" (other: MICROSECOND_TIME): BOOLEAN
effective function
{ANY}
Is Current strictly greater than other?
infix ">=" (other: MICROSECOND_TIME): BOOLEAN
effective function
{ANY}
Is Current greater than or equal than other?
in_range (lower: MICROSECOND_TIME, upper: MICROSECOND_TIME): BOOLEAN
effective function
{ANY}
Return True if Current is in range [lower..upper]
See also min, max, compare.
compare (other: MICROSECOND_TIME): INTEGER_32
effective function
{ANY}
If current object equal to other, 0 if smaller, -1; if greater, 1.
three_way_comparison (other: MICROSECOND_TIME): INTEGER_32
effective function
{ANY}
If current object equal to other, 0 if smaller, -1; if greater, 1.
min (other: MICROSECOND_TIME): MICROSECOND_TIME
effective function
{ANY}
Minimum of Current and other.
max (other: MICROSECOND_TIME): MICROSECOND_TIME
effective function
{ANY}
Maximum of Current and other.
bounded_by (a_min: MICROSECOND_TIME, a_max: MICROSECOND_TIME): MICROSECOND_TIME
effective function
{ANY}
A value that is equal to Current if it is between the limits set by a_min and a_max.