Inherits Struct, and java.io.Externalizable.
Public Member Functions | |
Duration_t (Duration_t duration) | |
Copy constructor. | |
Duration_t (int sec, int nanosec) | |
boolean | is_zero () |
boolean | is_infinite () |
boolean | is_auto () |
Public Attributes | |
int | sec |
seconds | |
int | nanosec |
nanoseconds | |
Static Public Attributes | |
static final int | DURATION_ZERO_SEC |
A zero-length second period of time. | |
static final int | DURATION_ZERO_NSEC |
A zero-length nano-second period of time. | |
static final int | DURATION_INFINITE_SEC |
An infinite second period of time. | |
static final int | DURATION_INFINITE_NSEC |
An infinite nano-second period of time. | |
static final int | DURATION_AUTO_SEC |
An auto second period of time. | |
static final int | DURATION_AUTO_NSEC |
An auto nano-second period of time. |
Represents a time interval.
Duration_t | ( | Duration_t | duration | ) |
Copy constructor.
duration | The duration instance to copy. It must not be null. |
Duration_t | ( | int | sec, | |
int | nanosec | |||
) |
sec | must be >=0 | |
nanosec | must be >=0 |
RETCODE_BAD_PARAMETER | if either value is negative |
boolean is_zero | ( | ) |
boolean is_infinite | ( | ) |
boolean is_auto | ( | ) |
final int DURATION_ZERO_SEC [static] |
A zero-length second period of time.
final int DURATION_ZERO_NSEC [static] |
A zero-length nano-second period of time.
final int DURATION_INFINITE_SEC [static] |
An infinite second period of time.
final int DURATION_INFINITE_NSEC [static] |
An infinite nano-second period of time.
final int DURATION_AUTO_SEC [static] |
An auto second period of time.
final int DURATION_AUTO_NSEC [static] |
An auto nano-second period of time.
int sec |
seconds
int nanosec |
nanoseconds