appkit  1.5.1
RoadNarrows Robotics Application Kit
Time.cxx File Reference

Time functions and class implementations. More...

#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#include <stdio.h>
#include <errno.h>
#include <iostream>
#include <iomanip>
#include <sstream>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/appkit/StringTheory.h"
#include "rnr/appkit/Time.h"

Go to the source code of this file.

Namespaces

 rnr
 RoadNarrows Robotics.
 
 rnr::chronos
 Chronos - God of Time.
 

Functions

ostream & operator<< (ostream &os, const timespec &obj)
 
timespec rnr::chronos::now ()
 Get the current time, indentified by CLOCK_REALTIME, since the last Epoch. More...
 
int rnr::chronos::now (timespec &ts)
 Get the current time, indentified by CLOCK_REALTIME, since the last Epoch. More...
 
double rnr::chronos::toFp (const timespec &ts)
 Convert timespec to floating point number equivalent. More...
 
timespec rnr::chronos::toTs (const double &t)
 Convert floating point seconds to timespec equivalent. More...
 
bool rnr::chronos::isSet (const timespec &a)
 Check if timespec is set. More...
 
void rnr::chronos::clear (timespec &ts)
 Clear this object's time. More...
 
timespec rnr::chronos::add (const timespec &a, const timespec &b)
 Add two timespecs. More...
 
timespec rnr::chronos::sub (const timespec &a, const timespec &b)
 Subtract two timespecs. More...
 
timespec rnr::chronos::normalize (const timespec &a)
 Normalize the timespec. More...
 

Detailed Description

Time functions and class implementations.

LastChangedDate
2015-11-09 17:38:34 -0700 (Mon, 09 Nov 2015)
Rev
4195
Author
Robin Knight (robin.nosp@m..kni.nosp@m.ght@r.nosp@m.oadn.nosp@m.arrow.nosp@m.s.co.nosp@m.m)
Copyright
© 2015-2017. RoadNarrows LLC.
http://www.roadnarrows.com
All Rights Reserved

Definition in file Time.cxx.