CARMA C++
Time.h File Reference

Common time functions. More...

#include <iosfwd>
#include <string>
#include <ctime>
#include "carma/util/types.h"

Go to the source code of this file.

Classes

class  carma::util::Time
 This class deals primarily with Frames and Times. More...
 

Namespaces

module  carma
 IDL for bima Rx Control, inherits from antenna::common::RxControl.
 
 carma::util
 Utility classes.
 

Functions

::std::ostream & operator<< (::std::ostream &os, const carma::util::Time &time)
 Insert (i.e. output) a presentation of the current time from an instance of carma::util::Time into an output stream. More...
 

Detailed Description

Common time functions.

Also support for time of half-second frames.

Author
Original: Steve Scott
Reviewer
Original: Colby Kraybill, Peter Teuben
Inspector
Original: Peter Teuben
Id:
Time.h,v 1.46 2012/07/10 16:16:54 abeard Exp

$CarmaCopyright$

Definition in file Time.h.

Function Documentation

std::ostream & operator<< ( ::std::ostream &  os,
const carma::util::Time time 
)

Insert (i.e. output) a presentation of the current time from an instance of carma::util::Time into an output stream.

The precision with which the seconds field is presented is determined by the precision of the stream. Hence, usage like this:

* ::std::cout << ::std::setprecision( 2 ) << myTime << ::std::endl;
*

would produce output that looks like this:

* 12:04:23.43
*
Parameters
osThe output stream to insert the presentation into.
timeThe carma::util::Time instance to get the current time from.
Returns
The os output stream parameter so that stream insertions can be chained in the usual C++ way (as shown in the example).