xapian-core
1.4.26
|
Functions | |
double | now () |
Return the current time. More... | |
double | end_time (double timeout) |
Return the end time for a timeout in timeout seconds. More... | |
void | to_timeval (double t, struct timeval *tv) |
Fill in struct timeval from number of seconds in a double. More... | |
void | sleep (double t) |
Sleep until the time represented by this object. More... | |
|
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 95 of file realtime.h.
References now().
Referenced by Xapian::DatabaseReplicator::DatabaseReplicator(), RemoteConnection::do_close(), RemoteServer::get_message(), RemoteDatabase::get_message(), RemoteServer::send_message(), and RemoteDatabase::send_message().
|
inline |
Return the current time.
Definition at line 49 of file realtime.h.
Referenced by Xapian::DatabaseReplica::Internal::apply_next_changeset(), Xapian::Database::compact_(), RemoteConnection::do_close(), end_time(), CPUTimer::get_current_cputime(), 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().
|
inline |
Sleep until the time represented by this object.
Definition at line 127 of file realtime.h.
References now(), rare, and to_timeval().
Referenced by Xapian::DatabaseReplica::Internal::apply_next_changeset(), BackendManagerMulti::createdb_multi(), DEFINE_TESTCASE(), main(), SlowDecreasingValueWeightPostingSource::next(), RemoteConnection::read_at_least(), rm_rf(), RemoteConnection::send_file(), and RemoteConnection::send_message().
|
inline |
Fill in struct timeval from number of seconds in a double.
Definition at line 110 of file realtime.h.
Referenced by TcpClient::open_socket(), RemoteConnection::read_at_least(), RemoteConnection::send_file(), RemoteConnection::send_message(), set_socket_timeouts(), and sleep().