This class is used to set a timeout that determines how long a view server will wait for a request. More...
#include <ilserver/ttime.h>
Inherits timeval.
Public Member Functions | |
IlsTime (long sec, long usec) | |
This constructor creates a time value of sec seconds and usec microseconds. | |
long | getSec () const |
Returns the number of seconds contained in the time value. | |
long | getUSec () const |
Returns the number of microseconds contained in the time value. | |
friend | ILSIMPORTFUNCTION (IlsTime) operator+(const IlsTime &t1 |
Adds t1 to t2 and returns the time value. | |
friend | ILSIMPORTFUNCTION (IlsTime) operator-(const IlsTime &t1 |
Subtracts t2 from t1 and returns the time value. | |
IlsBoolean | isNull () |
Returns IlsTrue if the time value is null (that is, 0 seconds, 0 microseconds). | |
IlsBoolean | operator< (const IlsTime &t) const |
Returns IlsTrue if the time value is anterior to t. | |
IlsBoolean | operator> (const IlsTime &t) const |
Returns IlsTrue if the time value is posterior to t. | |
Static Public Attributes | |
static IlsTime * | Infinite |
Represents an infinite time value. More... | |
static IlsTime * | Null |
Represents a null time value. | |
static IlsTime * | Timeout |
Represents a default timeout. More... | |
This class is used to set a timeout that determines how long a view server will wait for a request.
Library: server
and mvcomp
IlsMvServer
.
|
static |
Represents an infinite time value.
Its value is a null pointer.
|
static |
Represents a default timeout.
The default value of the timeout is 20 seconds.