![]() |
appkit
1.5.1
RoadNarrows Robotics Application Kit
|
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... | |
Time functions and class implementations.
Definition in file Time.cxx.