Method |
Description |
|
__construct ( $time, $instruction ) |
Constructs the time idle. |
|
convert_length ( integer | float $length, integer $to ) : integer | float |
Converts length of times from and to seconds, milliseconds and
microseconds. |
|
get_instruction ( ) : integer |
Returns the type of time. |
|
get_length ( ) : integer |
Returns the length of time to idle. |
|
get_time_left ( ) : integer | float |
Returns the amount of time left until the idle should stop. |
|
get_time_until ( ) : integer |
Returns the length of time to idle until. |
|
has_time_passed ( ) : boolean |
Determines if the time to idle until has passed. |
|
idle ( Processor $processor ) : void |
Runs the idle function, this will call either sleep or usleep
depending upon the type. |
|
override ( object $time ) : boolean |
Determine if the given time idle function is less than the current. |
|
set_time ( integer $time ) |
Sets the time. |
|