ifw-core  4.1.0-pre1
Namespaces | Functions
time.hpp File Reference
#include <string>
#include <sys/sem.h>
#include <pthread.h>
#include <mutex>
#include <rad/logger.hpp>
#include <core/utils/base/base.hpp>

Go to the source code of this file.

Namespaces

 core
 
 core::utils
 
 core::utils::time
 

Functions

void core::utils::time::Sleep (const float sleep_time)
 Sleep. More...
 
double core::utils::time::Time ()
 Return the time in seconds since epoch. More...
 
void core::utils::time::SecondsToTimeSpec (const double time, struct timespec &time_spec)
 Convert time in seconds since epoch to a timespec struct. More...
 
void core::utils::time::SecondsToTimeVal (const double time, struct timeval &time_val)
 Convert time in seconds since epoch to timeval struct. More...
 
std::string core::utils::time::IsoTime (const double time_since_epoch, const uint8_t prec=6)
 Generate ISO8601 timestamp from provided time in seconds since epoch. More...
 
std::string core::utils::time::IsoTimeNow (const int8_t prec=6)
 Generate ISO8601 timestamp from time of invoking this function. More...