SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
Public Types | Static Public Member Functions | List of all members
TimeUtil Class Reference

Miscellaneous time-related utilities. More...

#include <TimeUtil.hh>

Public Types

typedef long long long64
 

Static Public Member Functions

static tm * get_tm_local ()
 
static std::string getAscTime ()
 
static std::string getDate ()
 
static long64 getTimeNS ()
 

Detailed Description

Miscellaneous time-related utilities.

Definition at line 16 of file TimeUtil.hh.

Member Typedef Documentation

◆ long64

typedef long long long64

Definition at line 20 of file TimeUtil.hh.

Member Function Documentation

◆ get_tm_local()

static tm* get_tm_local ( )
inlinestatic

Definition at line 44 of file TimeUtil.hh.

References LOG::time.

Referenced by TimeUtil::getAscTime(), and TimeUtil::getDate().

◆ getAscTime()

static std::string getAscTime ( )
inlinestatic

Definition at line 22 of file TimeUtil.hh.

References TimeUtil::get_tm_local().

Referenced by LogStream::operator<<().

◆ getDate()

static std::string getDate ( )
inlinestatic

Definition at line 37 of file TimeUtil.hh.

References TimeUtil::get_tm_local().

Referenced by LcioFileNamer::getFieldValue().

◆ getTimeNS()

static long64 getTimeNS ( )
inlinestatic
Todo:
FIXME: This has only millisecond accuracy.

Definition at line 31 of file TimeUtil.hh.

References LOG::time.

Referenced by LcioManager::setEventTimeStamp().


The documentation for this class was generated from the following file: