|
xapian-core
1.4.30
|
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 ChertDatabaseReplicator::apply_changeset_from_conn(), GlassDatabaseReplicator::apply_changeset_from_conn(), Xapian::DatabaseReplica::Internal::apply_db_copy(), RemoteServer::get_message(), RemoteDatabase::get_message(), RemoteConnection::get_message(), RemoteConnection::get_message_chunk(), RemoteConnection::get_message_chunked(), ChertDatabaseReplicator::process_changeset_chunk_base(), ChertDatabaseReplicator::process_changeset_chunk_blocks(), GlassDatabaseReplicator::process_changeset_chunk_blocks(), GlassDatabaseReplicator::process_changeset_chunk_version(), RemoteConnection::read_at_least(), RemoteConnection::receive_file(), RemoteConnection::send_file(), RemoteConnection::send_message(), RemoteDatabase::send_message(), RemoteServer::send_message(), ChertDatabase::send_whole_database(), GlassDatabase::send_whole_database(), and RemoteConnection::sniff_next_message_type().
|
inline |
Return the current time.
Definition at line 49 of file realtime.h.
Referenced by Xapian::DatabaseReplica::Internal::apply_next_changeset(), Xapian::Database::compact_(), 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().