17class Time :
protected timespec {
26 Time(int64_t seconds, int64_t nanoSeconds) {
28 tv_nsec = nanoSeconds;
36 return tv_sec +
static_cast<double>(tv_nsec) /
FRACTIONS;
44 tv_sec += t.tv_sec + 1;
51 if (tv_nsec >= t.tv_nsec) {
56 tv_sec -= t.tv_sec + 1;
63 clock_gettime(CLOCK_REALTIME, &time);
86 std::stringstream time;
89 return stream << time.str();
std::ostream & operator<<(std::ostream &s, const FcidumpReader::FcidumpHeader &h)
Definition FcidumpWriter.cxx:25
int64_t getFractions() const
Definition Time.hpp:34
Time()
Definition Time.hpp:22
Time & operator+=(Time const &t)
Definition Time.hpp:39
Time(Time const &t)
Definition Time.hpp:30
static constexpr int64_t FRACTIONS
Definition Time.hpp:19
static constexpr int FRACTION_DIGITS
Definition Time.hpp:20
int64_t getSeconds() const
Definition Time.hpp:33
Time & operator-=(Time const &t)
Definition Time.hpp:50
static Time getCurrentRealTime()
Definition Time.hpp:61
double getFractionalSeconds() const
Definition Time.hpp:35
Time(int64_t seconds, int64_t nanoSeconds)
Definition Time.hpp:26
Definition Algorithm.hpp:10
FockVector< F > operator+(const FockVector< F > &a, const FockVector< F > &b)
Returns the sum of two FockVectors a and b, where neither a nor b are modified.
Definition FockVector.hpp:406
std::string operator*(const std::string &s, const sisi4s::Permutation< N > &pi)
Definition CcsdPerturbativeTriples.cxx:24
FockVector< F > operator-(const FockVector< F > &a, const FockVector< F > &b)
Returns the difference between two FockVectors a and b, where neither a nor b are modified.
Definition FockVector.hpp:435