NCBI C++ ToolKit
Classes | Enumerations | Functions | Variables
ns_precise_time.hpp File Reference
#include <corelib/ncbi_limits.hpp>
#include <corelib/ncbitime.hpp>
#include <sys/time.h>
+ Include dependency graph for ns_precise_time.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CNSPreciseTime
 

Enumerations

enum  {
  kMSecsPerSecond = 1000 , kUSecsPerMSec = 1000 , kNSecsPerUSec = 1000 , kUSecsPerSecond = kUSecsPerMSec * kMSecsPerSecond ,
  kNSecsPerMSec = kNSecsPerUSec * kUSecsPerMSec , kNSecsPerSecond = kNSecsPerMSec * kMSecsPerSecond
}
 

Functions

CNSPreciseTime operator+ (const CNSPreciseTime &lhs, const CNSPreciseTime &rhs)
 
CNSPreciseTime operator- (const CNSPreciseTime &lhs, const CNSPreciseTime &rhs)
 
bool operator== (const CNSPreciseTime &lhs, const CNSPreciseTime &rhs)
 
bool operator!= (const CNSPreciseTime &lhs, const CNSPreciseTime &rhs)
 
string NS_FormatPreciseTime (const CNSPreciseTime &t)
 
string NS_FormatPreciseTimeAsSec (const CNSPreciseTime &t)
 

Variables

const CNSPreciseTime kTimeNever = CNSPreciseTime::Never()
 
const CNSPreciseTime kTimeZero = CNSPreciseTime()
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kMSecsPerSecond 
kUSecsPerMSec 
kNSecsPerUSec 
kUSecsPerSecond 
kNSecsPerMSec 
kNSecsPerSecond 

Definition at line 43 of file ns_precise_time.hpp.

Function Documentation

◆ NS_FormatPreciseTime()

string NS_FormatPreciseTime ( const CNSPreciseTime t)
inline

◆ NS_FormatPreciseTimeAsSec()

string NS_FormatPreciseTimeAsSec ( const CNSPreciseTime t)
inline

◆ operator!=()

bool operator!= ( const CNSPreciseTime lhs,
const CNSPreciseTime rhs 
)
inline

Definition at line 174 of file ns_precise_time.hpp.

◆ operator+()

CNSPreciseTime operator+ ( const CNSPreciseTime lhs,
const CNSPreciseTime rhs 
)
inline

Definition at line 149 of file ns_precise_time.hpp.

References result.

◆ operator-()

CNSPreciseTime operator- ( const CNSPreciseTime lhs,
const CNSPreciseTime rhs 
)
inline

Definition at line 157 of file ns_precise_time.hpp.

References result.

◆ operator==()

bool operator== ( const CNSPreciseTime lhs,
const CNSPreciseTime rhs 
)
inline

Definition at line 165 of file ns_precise_time.hpp.

Variable Documentation

◆ kTimeNever

◆ kTimeZero

Modified on Sun Apr 14 05:28:38 2024 by modify_doxy.py rev. 669887