12 #ifndef ROOT_TTimeStamp 13 #define ROOT_TTimeStamp 46 #if defined (_MSC_VER) && (_MSC_VER < 1900) 84 void NormalizeNanoSec();
92 fSec(
Int_t(ts.tv_sec)), fNanoSec(ts.tv_nsec) { NormalizeNanoSec(); }
96 fSec(
Int_t(t)), fNanoSec(nsec) { NormalizeNanoSec(); }
134 {
timespec_t value = {fSec,fNanoSec};
return value; }
147 const char *AsString(
const Option_t *option=
"")
const;
166 operator double()
const {
return AsDouble(); }
169 static Int_t GetZoneOffset();
170 static time_t MktimeFromUTC(
tm_t *tmstruct);
171 static void DumpTMStruct(
const tm_t &tmstruct);
void SetNanoSec(Int_t nsec)
TBuffer & operator>>(TBuffer &buf, TTimeStamp &ts)
Read time stamp from TBuffer.
Bool_t operator==(const TTimeStamp &lhs, const TTimeStamp &rhs)
Double_t AsDouble() const
TTimeStamp(time_t t, Int_t nsec)
Buffer base class used for serializing objects.
This class implements a mutex interface.
TTimeStamp(const timespec_t &ts)
Double_t AsJulianDate() const
Bool_t operator<=(const TTimeStamp &lhs, const TTimeStamp &rhs)
struct timespec timespec_t
R__EXTERN TVirtualMutex * gTimeMutex
#define ClassDef(name, id)
static Bool_t IsLeapYear(Int_t year)
timespec_t GetTimeSpec() const
std::ostream & operator<<(std::ostream &os, const TTimeStamp &ts)
Write time stamp to std::ostream.
Bool_t operator>(const TTimeStamp &lhs, const TTimeStamp &rhs)
Bool_t operator<(const TTimeStamp &lhs, const TTimeStamp &rhs)
Bool_t operator!=(const TTimeStamp &lhs, const TTimeStamp &rhs)
void Add(THist< DIMENSIONS, PRECISION_TO, STAT_TO... > &to, const THist< DIMENSIONS, PRECISION_FROM, STAT_FROM... > &from)
Add two histograms.
void Copy(void *source, void *dest)
void Print(std::ostream &os, const OptionType &opt)
The TTimeStamp encapsulates seconds and ns since EPOCH.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Bool_t operator>=(const TTimeStamp &lhs, const TTimeStamp &rhs)