SquidTime.h File Reference
#include "rfc1123.h"
#include <ctime>
#include <iosfwd>
Include dependency graph for SquidTime.h:

Go to the source code of this file.

Classes

class  TimeEngine
 

Namespaces

 Time
 

Typedefs

typedef uint64_t time_msec_t
 

Functions

time_t getCurrentTime (void)
 Get current time. More...
 
int tvSubMsec (struct timeval, struct timeval)
 
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)
 
long int tvToMsec (struct timeval &t)
 Convert timeval to milliseconds. More...
 
bool operator< (const timeval &a, const timeval &b)
 
bool operator> (const timeval &a, const timeval &b)
 
bool operator!= (const timeval &a, const timeval &b)
 
bool operator<= (const timeval &a, const timeval &b)
 
bool operator>= (const timeval &a, const timeval &b)
 
bool operator== (const timeval &a, const timeval &b)
 
std::ostream & operator<< (std::ostream &, const timeval &)
 prints <seconds>.<microseconds> More...
 
const char * Time::FormatStrf (time_t t)
 
const char * Time::FormatHttpd (time_t t)
 

Variables

struct timeval current_time
 
double current_dtime
 
time_t squid_curtime
 

Typedef Documentation

◆ time_msec_t

typedef uint64_t time_msec_t

Definition at line 21 of file SquidTime.h.

Function Documentation

◆ getCurrentTime()

◆ operator!=()

bool operator!= ( const timeval &  a,
const timeval &  b 
)
inline

Definition at line 75 of file SquidTime.h.

References timercmp.

◆ operator<()

bool operator< ( const timeval &  a,
const timeval &  b 
)
inline

Definition at line 62 of file SquidTime.h.

References timercmp.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ,
const timeval &   
)

Definition at line 84 of file time.cc.

◆ operator<=()

bool operator<= ( const timeval &  a,
const timeval &  b 
)
inline

Definition at line 83 of file SquidTime.h.

◆ operator==()

bool operator== ( const timeval &  a,
const timeval &  b 
)
inline

Definition at line 96 of file SquidTime.h.

◆ operator>()

bool operator> ( const timeval &  a,
const timeval &  b 
)
inline

Definition at line 69 of file SquidTime.h.

References timercmp.

◆ operator>=()

bool operator>= ( const timeval &  a,
const timeval &  b 
)
inline

Definition at line 90 of file SquidTime.h.

◆ tvAdd()

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

timeval addition operation

Parameters
[out]res= t1 + t2

Definition at line 55 of file time.cc.

Referenced by ping_data::deadline().

◆ tvAssignAdd()

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

timeval addition assignment operation

Parameters
[out]t+= add

Definition at line 65 of file time.cc.

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

◆ tvSub()

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

◆ tvSubMsec()

◆ tvToMsec()

Variable Documentation

◆ current_dtime

◆ current_time

struct timeval current_time
extern

Definition at line 1 of file stub_time.cc.

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

◆ squid_curtime

time_t squid_curtime
extern

Definition at line 17 of file stub_time.cc.

Referenced by getCurrentTime().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors