timespec


class description - source file - inheritance tree

class timespec


    public:
timespec timespec() timespec timespec(const timespec&) void ~timespec()

Data Members


    public:
long tv_sec seconds long tv_nsec nanoseconds

Class Description

 The TTimeStamp encapsulates seconds and ns since EPOCH

 This extends (and isolates) struct timespec
    struct timespec
       {
          time_t   tv_sec;   /* seconds *
          long     tv_nsec;  /* nanoseconds *
       }
    time_t seconds is relative to Jan 1, 1970 00:00:00 UTC

 No accounting of leap seconds is made.

 Due to ROOT/CINT limitations TTimeStamp does not explicitly
 hold a timespec struct; attempting to do so means the Streamer
 must be hand written.  Instead we have chosen to simply contain
 similar fields within the private area of this class.

 NOTE: the use of time_t (and its default implementation as a 32 int)
       implies overflow conditions occurs somewhere around
       Jan 18, 19:14:07, 2038.
       If this experiment is still going when it becomes significant
       someone will have to deal with it.





Inline Functions


        timespec timespec()
        timespec timespec(const timespec&)
            void ~timespec()


Author: R. Hatcher 30/9/2001
Last update: root/base:$Name: $:$Id: TTimeStamp.h,v 1.8 2002/10/31 07:27:33 brun Exp $
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.