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. | |
| 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] |
Return the current time.
Definition at line 45 of file realtime.h.
Referenced by Xapian::DatabaseReplica::Internal::apply_next_changeset(), Xapian::Compactor::Internal::compact(), end_time(), PerfTestLogger::indexing_add(), PerfTestLogger::indexing_begin(), PerfTestLogger::indexing_log(), RemoteConnection::read_at_least(), PerfTestLogger::search_end(), PerfTestLogger::search_start(), RemoteConnection::send_file(), RemoteConnection::send_message(), and sleep().
| void RealTime::sleep | ( | double | t | ) | [inline] |
Sleep until the time represented by this object.
Definition at line 82 of file realtime.h.
Referenced by Xapian::DatabaseReplica::Internal::apply_next_changeset(), DEFINE_TESTCASE(), and main().