/*! \file \version $Id: TAGtimestamp.icc,v 1.1 2001/12/09 14:25:29 mueller Exp $ \brief Implementation (inline) of TATOFtimestamp */ //------------------------------------------+----------------------------------- //! Convert a Unix time to a timestamp. inline void TATOFtimestamp::FromUnixTime(Int_t i_time) { fiSec = i_time; fiUSec = 0; return; } //------------------------------------------+----------------------------------- //! Convert timestamp to \c double . inline Double_t TATOFtimestamp::ToDouble() const { return (Double_t)fiSec + 1.e-6 * (Double_t)fiUSec; } //------------------------------------------+----------------------------------- //! Convert timestamp to a Unix time. inline Int_t TATOFtimestamp::ToUnixTime() const { return fiSec; } //------------------------------------------+----------------------------------- //! Returns \c true if time is valid. inline Bool_t TATOFtimestamp::Valid() const { return fiSec >= 0; } //------------------------------------------+----------------------------------- //! Invalidates timestamp inline void TATOFtimestamp::Clear() { fiSec = -1; fiUSec = 0; return; }