RealTime Namespace Reference


Functions

double now ()
 Return the current time.
double end_time (double timeout)
 Return the end time for a timeout in timeout seconds.
void sleep (double t)
 Sleep until the time represented by this object.

Function Documentation

double RealTime::end_time ( double  timeout  )  [inline]

Return the end time for a timeout in timeout seconds.

If timeout is 0, that means "no timeout", so 0 is returned. Otherwise the current time plus timeout seconds is returned.

Definition at line 77 of file realtime.h.

References now().

Referenced by RemoteServer::get_message(), RemoteDatabase::get_message(), RemoteServer::send_message(), and RemoteDatabase::send_message().

double RealTime::now (  )  [inline]

void RealTime::sleep ( double  t  )  [inline]

Sleep until the time represented by this object.

Definition at line 82 of file realtime.h.

References now(), and rare.

Referenced by Xapian::DatabaseReplica::Internal::apply_next_changeset(), DEFINE_TESTCASE(), and main().


Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.