ROOT logo
// @(#)root/base:$Id$
// Author: Fons Rademakers   28/11/96

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TTime                                                                //
//                                                                      //
// Basic time type with millisecond precision.                          //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include "TTime.h"
#include "TString.h"
#include "TError.h"


ClassImp(TTime)

//______________________________________________________________________________
const char *TTime::AsString() const
{
   // Return the time as a string.

   return Form("%lld", fMilliSec);
}

//______________________________________________________________________________
TTime::operator long() const
{
#ifndef R__B64
   if (fMilliSec > (Long64_t)kMaxInt)
      Error("TTime::operator long()", "time truncated, use operator long long");
#endif
   return (Long_t) fMilliSec;
}

//______________________________________________________________________________
TTime::operator unsigned long() const
{
#ifndef R__B64
   if (fMilliSec > (Long64_t)kMaxUInt)
      Error("TTime::operator unsigned long()", "time truncated, use operator unsigned long long");
#endif
   return (ULong_t) fMilliSec;
}
 TTime.cxx:1
 TTime.cxx:2
 TTime.cxx:3
 TTime.cxx:4
 TTime.cxx:5
 TTime.cxx:6
 TTime.cxx:7
 TTime.cxx:8
 TTime.cxx:9
 TTime.cxx:10
 TTime.cxx:11
 TTime.cxx:12
 TTime.cxx:13
 TTime.cxx:14
 TTime.cxx:15
 TTime.cxx:16
 TTime.cxx:17
 TTime.cxx:18
 TTime.cxx:19
 TTime.cxx:20
 TTime.cxx:21
 TTime.cxx:22
 TTime.cxx:23
 TTime.cxx:24
 TTime.cxx:25
 TTime.cxx:26
 TTime.cxx:27
 TTime.cxx:28
 TTime.cxx:29
 TTime.cxx:30
 TTime.cxx:31
 TTime.cxx:32
 TTime.cxx:33
 TTime.cxx:34
 TTime.cxx:35
 TTime.cxx:36
 TTime.cxx:37
 TTime.cxx:38
 TTime.cxx:39
 TTime.cxx:40
 TTime.cxx:41
 TTime.cxx:42
 TTime.cxx:43
 TTime.cxx:44
 TTime.cxx:45
 TTime.cxx:46
 TTime.cxx:47
 TTime.cxx:48
 TTime.cxx:49
 TTime.cxx:50
 TTime.cxx:51
 TTime.cxx:52
 TTime.cxx:53