time.cc File Reference
#include "squid.h"
#include "SquidTime.h"
Include dependency graph for time.cc:

Go to the source code of this file.

Functions

time_t getCurrentTime (void)
 Get current time. More...
 
int tvSubMsec (struct timeval t1, struct timeval t2)
 
void tvSub (struct timeval &res, struct timeval const &t1, struct timeval const &t2)
 
void tvAdd (struct timeval &res, struct timeval const &t1, struct timeval const &t2)
 
void tvAssignAdd (struct timeval &t, struct timeval const &add)
 

Variables

struct timeval current_time
 
double current_dtime
 
time_t squid_curtime = 0
 

Function Documentation

time_t getCurrentTime ( void  )

Definition at line 19 of file time.cc.

References current_dtime, current_time, NULL, and squid_curtime.

void tvAdd ( struct timeval &  res,
struct timeval const &  t1,
struct timeval const &  t2 
)

timeval addition operation

Parameters
[out]res= t1 + t2

Definition at line 52 of file time.cc.

void tvAssignAdd ( struct timeval &  t,
struct timeval const &  add 
)

timeval addition assignment operation

Parameters
[out]t+= add

Definition at line 62 of file time.cc.

Referenced by Adaptation::Icap::History::processingTime(), and Adaptation::Icap::History::stop().

void tvSub ( struct timeval &  res,
struct timeval const &  t1,
struct timeval const &  t2 
)
int tvSubMsec ( struct timeval  t1,
struct timeval  t2 
)

Definition at line 34 of file time.cc.

Variable Documentation

struct timeval current_time

Definition at line 14 of file time.cc.

Referenced by IpCacheLookupForwarder::additionalLookupDelay(), fqdncache_entry::age(), Format::Format::assemble(), authDigestNonceIsStale(), authenticateDigestNonceCacheCleanup(), authenticateDigestNonceNew(), IpcIoFile::canWait(), Auth::CredentialsCache::cleanup(), clientBeginRequest(), ClientHttpRequest::ClientHttpRequest(), StoreEntry::complete(), Adaptation::Icap::History::currentTime(), debugLogTime(), IpcIoFile::DiskerHandleRequests(), Adaptation::Icap::Xaction::finalizeLogInfo(), IpCacheLookupForwarder::forwardLookup(), fqdncache_nbgethostbyaddr(), GetCountersStats(), getCurrentTime(), GetInfo(), Adaptation::Icap::OptXact::handleCommConnected(), Adaptation::Icap::ModXact::handleCommConnected(), Adaptation::Icap::OptXact::handleCommRead(), Adaptation::Icap::ModXact::handleCommRead(), helperDispatch(), helperReturnBuffer(), helperStatefulDispatch(), helperStatefulHandleRead(), icpUdpSend(), icpUdpSendQueue(), idnsCheckQueue(), idnsSendQuery(), idnsStartQuery(), idnsStats(), Rock::Rebuild::loadingSteps(), Icmp::Log(), ClientHttpRequest::logRequest(), IpCacheLookupForwarder::lookupsStarting(), neighborsUdpPing(), neighborUpdateRtt(), netdbReloadState(), netdbSaveState(), HierarchyLogEntry::notePeerRead(), HierarchyLogEntry::notePeerWrite(), Mgr::InfoActionData::operator+=(), helper::packStatsInto(), peerCountHandleIcpReply(), peerCountMcastPeersStart(), peerGetSomeNeighbor(), peerHtcpParentMiss(), peerIcpParentMiss(), peerSelect(), peerSelectDnsPaths(), ConnStateData::postHttpsAccept(), IpcIoFile::push(), Fs::Ufs::RebuildState::rebuildStep(), Adaptation::History::Entry::rptm(), Icmp6::SendEcho(), Icmp4::SendEcho(), snmp_prfSysFn(), snmp_sysFn(), Log::Format::SquidIcap(), SquidMain(), Log::Format::SquidNative(), Log::Format::SquidReferer(), Adaptation::Icap::History::start(), Adaptation::Ecap::XactionRep::start(), HierarchyLogEntry::startPeerClock(), statAvgTick(), statClientRequests(), statCountersInit(), HierarchyLogEntry::stopPeerClock(), storeDirWriteCleanLogs(), storeLog(), storeRebuildComplete(), storeRebuildStart(), IpCacheLookupForwarder::totalResponseTime(), ClientHttpRequest::updateCounters(), Rock::Rebuild::validationSteps(), IpcIoFile::WaitBeforePop(), and Adaptation::Icap::Xaction::Xaction().

time_t squid_curtime = 0

Definition at line 16 of file time.cc.

Referenced by Auth::User::absorb(), addedEntry(), Auth::User::addIp(), StoreEntry::adjustVary(), AlreadyTimedOut(), Format::Format::assemble(), clientReplyContext::buildReplyHeader(), Downloader::buildRequest(), Adaptation::Icap::ServiceRep::changeOptions(), HttpStateData::checkDateSkew(), CommSelectEngine::checkEvents(), checkFailureRatio(), Mem::Meter::checkHighWater(), StoreEntry::checkNegativeHit(), Adaptation::Icap::ServiceRep::checkOptions(), MemPoolChunked::clean(), clientdbCutoffDenied(), clientdbGC(), clientdbUpdate(), commSetConnTimeout(), Adaptation::Icap::Options::configure(), ErrorState::Convert(), MemPoolChunked::convertFreeCacheToChunkFreeCache(), testRock::createEntry(), Comm::ConnOpener::createFd(), Auth::User::CredentialsCacheStats(), death(), Kid::deathDuration(), LeakFinder::dump(), ErrorState::Dump(), dump_peers(), fde::dumpStats(), Enqueue(), LruMap< Key, EntryValue, EntryCost >::expired(), StoreEntry::expireNow(), expiresMoreThan(), external_acl_entry_expired(), external_acl_grace_expired(), fdAdjustReserved(), Mgr::Action::fillEntry(), FwdState::ForwardTimeout(), fqdncache_gethostbyaddr(), fqdncacheAddEntry(), fqdncacheCallback(), fqdncacheExpiredEntry(), fqdncacheParse(), fqdnStats(), Adaptation::Icap::Options::fresh(), MemPoolChunked::get(), get_session_cb(), getCurrentTime(), gopherHTMLFooter(), PeerPoolMgr::handleOpenedConnection(), HttpReply::hdrExpirationTime(), HeapKeyGen_StoreEntry_LFUDA(), helperOpenServers(), helperServerFree(), helperStatefulOpenServers(), helperStatefulServerFree(), htcpTstReply(), Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), Ftp::HttpReplyWrapper(), icpGetCommonOpcode(), idnsRead(), internalStart(), ipcache_entry::ipcache_entry(), ipcache_gethostbyname(), ipcacheAddEntry(), ipcacheCallback(), ipcacheExpiredEntry(), ipcacheHandleReply(), ipcacheInvalidate(), ipcacheInvalidateNegative(), ipcacheStatPrint(), Comm::Connection::lifeTime(), logfile_mod_daemon_writeline(), Ip::Intercept::Lookup(), lru_stats(), main(), Store::Controller::maintain(), Fs::Ufs::UFSSwapDir::maintain(), Adaptation::Icap::ModXact::makeRequestHeaders(), ACLTimeStrategy::match(), MemChunk::MemChunk(), StoreEntry::negativeCache(), neighborsUdpPing(), neighborUp(), netdbBinaryExchange(), netdbClosestParent(), netdbExchangeUpdatePeer(), netdbHostData(), netdbHostHops(), netdbHostRtt(), netdbPingSite(), netdbSendPing(), netdbUpdatePeer(), Ip::Intercept::NetfilterInterception(), Comm::Connection::noteStart(), Comm::TcpAcceptor::okToAccept(), Adaptation::Icap::ServiceRep::optionsFetchTime(), peerAlive(), peerConnectFailedSilent(), peerDigestCheck(), peerDigestFetchReply(), peerDigestFetchSetStats(), peerDigestInit(), peerDigestNeeded(), peerDigestNewDelay(), peerDigestPDFinish(), peerDigestRequest(), peerDigestSetCheck(), peerProbeConnect(), peerProbeIsBusy(), peerWouldBePinged(), Ip::Intercept::PfInterception(), Mem::PoolReport(), helper::prepSubmit(), ClientInfo::quota(), HttpReply::redirect(), MessageDelayPool::refillBucket(), refreshCheck(), helper_server::requestTimeout(), FwdState::retryOrBail(), saneDiff(), Adaptation::Icap::ServiceRep::scheduleUpdate(), send_announce(), Mgr::Forwarder::sendError(), HttpReply::setHeaders(), Security::PeerConnector::setReadTimeout(), Comm::SetSelect(), squidaio_queue_request(), Log::Format::SquidUserAgent(), Kid::start(), Mgr::Inquirer::start(), CacheManager::Start(), StatefulEnqueue(), Kid::stop(), store_session_cb(), storeCreatePureEntry(), storeDigestCalcCap(), storeDigestRewriteFinish(), storeDigestRewriteResume(), storeGetMemSpace(), storeRebuildProgress(), Adaptation::Icap::ServiceRep::suspend(), DiskdIOStrategy::sync(), helper::syncQueueStats(), testUfs::testUfsSearch(), Helper::Request::timedOut(), StoreEntry::timestampsSet(), LeakFinder::touch(), StoreEntry::touch(), clientReplyContext::traceReply(), DelayPools::Update(), ExternalACLEntry::update(), ipcache_entry::updateTtl(), urnHandleReply(), StoreEntry::validToSend(), Comm::Write(), and writeTimedOut().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors