Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::microseconds Class Reference

#include <time.hpp>

Public Member Functions

constexpr microseconds (int64_t c=0)
 
constexpr bool operator== (const microseconds &c) const
 
constexpr bool operator!= (const microseconds &c) const
 
constexpr microsecondsoperator+= (const microseconds &c)
 
constexpr microsecondsoperator-= (const microseconds &c)
 
constexpr int64_t count () const
 
constexpr int64_t to_seconds () const
 

Static Public Member Functions

static constexpr microseconds maximum ()
 

Friends

class time_point
 
constexpr microseconds operator+ (const microseconds &l, const microseconds &r)
 
constexpr microseconds operator- (const microseconds &l, const microseconds &r)
 
constexpr bool operator> (const microseconds &a, const microseconds &b)
 
constexpr bool operator>= (const microseconds &a, const microseconds &b)
 
constexpr friend bool operator< (const microseconds &a, const microseconds &b)
 
constexpr friend bool operator<= (const microseconds &a, const microseconds &b)
 

Detailed Description

Definition at line 11 of file time.hpp.

Constructor & Destructor Documentation

◆ microseconds()

fc::microseconds::microseconds ( int64_t c = 0)
inlineexplicitconstexpr

Definition at line 13 of file time.hpp.

13:_count(c){}
Here is the caller graph for this function:

Member Function Documentation

◆ count()

int64_t fc::microseconds::count ( ) const
inlineconstexpr

Definition at line 26 of file time.hpp.

26{ return _count; }
Here is the caller graph for this function:

◆ maximum()

static constexpr microseconds fc::microseconds::maximum ( )
inlinestaticconstexpr

Definition at line 14 of file time.hpp.

14{ return microseconds(0x7fffffffffffffffll); }
constexpr microseconds(int64_t c=0)
Definition time.hpp:13
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool fc::microseconds::operator!= ( const microseconds & c) const
inlineconstexpr

Definition at line 19 of file time.hpp.

19{ return _count != c._count; }

◆ operator+=()

microseconds & fc::microseconds::operator+= ( const microseconds & c)
inlineconstexpr

Definition at line 24 of file time.hpp.

24{ _count += c._count; return *this; }

◆ operator-=()

microseconds & fc::microseconds::operator-= ( const microseconds & c)
inlineconstexpr

Definition at line 25 of file time.hpp.

25{ _count -= c._count; return *this; }

◆ operator==()

bool fc::microseconds::operator== ( const microseconds & c) const
inlineconstexpr

Definition at line 18 of file time.hpp.

18{ return _count == c._count; }

◆ to_seconds()

int64_t fc::microseconds::to_seconds ( ) const
inlineconstexpr

Definition at line 27 of file time.hpp.

27{ return _count/1000000; }
Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator+

microseconds operator+ ( const microseconds & l,
const microseconds & r )
friend

Definition at line 15 of file time.hpp.

15{ return microseconds(l._count+r._count); }
const mie::Vuint & r
Definition bn.cpp:28
int l

◆ operator-

microseconds operator- ( const microseconds & l,
const microseconds & r )
friend

Definition at line 16 of file time.hpp.

16{ return microseconds(l._count-r._count); }

◆ operator<

friend bool operator< ( const microseconds & a,
const microseconds & b )
friend

Definition at line 22 of file time.hpp.

22{ return a._count < b._count; }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1181

◆ operator<=

friend bool operator<= ( const microseconds & a,
const microseconds & b )
friend

Definition at line 23 of file time.hpp.

23{ return a._count <= b._count; }

◆ operator>

bool operator> ( const microseconds & a,
const microseconds & b )
friend

Definition at line 20 of file time.hpp.

20{ return a._count > b._count; }

◆ operator>=

bool operator>= ( const microseconds & a,
const microseconds & b )
friend

Definition at line 21 of file time.hpp.

21{ return a._count >= b._count; }

◆ time_point

friend class time_point
friend

Definition at line 29 of file time.hpp.


The documentation for this class was generated from the following file: