OKVIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Macros | Functions
Time.cpp File Reference

Source file for the Time class. More...

#include <okvis/Time.hpp>
#include <okvis/implementation/Time.hpp>
#include <cmath>
#include <ctime>
#include <iomanip>
#include <stdexcept>
#include <limits>

Namespaces

 okvis
 okvis Main namespace of this package.
 

Macros

#define HAS_CLOCK_GETTIME   (_POSIX_C_SOURCE >= 199309L)
 

Functions

const Duration okvis::DURATION_MAX (std::numeric_limits< int32_t >::max(), 999999999)
 
const Duration okvis::DURATION_MIN (std::numeric_limits< int32_t >::min(), 0)
 
const Time okvis::TIME_MAX (std::numeric_limits< uint32_t >::max(), 999999999)
 
const Time okvis::TIME_MIN (0, 1)
 
void okvis::okvis_walltime (uint32_t &sec, uint32_t &nsec) throw (NoHighPerformanceTimersException)
 
int okvis::okvis_nanosleep (const uint32_t &sec, const uint32_t &nsec)
 Simple representation of the rt library nanosleep function. More...
 
bool okvis::okvis_wallsleep (uint32_t sec, uint32_t nsec)
 Go to the wall! More...
 
std::ostream & okvis::operator<< (std::ostream &os, const Time &rhs)
 
std::ostream & okvis::operator<< (std::ostream &os, const Duration &rhs)
 
std::ostream & okvis::operator<< (std::ostream &os, const WallTime &rhs)
 
std::ostream & okvis::operator<< (std::ostream &os, const WallDuration &rhs)
 
void okvis::normalizeSecNSec (uint64_t &sec, uint64_t &nsec)
 
void okvis::normalizeSecNSec (uint32_t &sec, uint32_t &nsec)
 
void okvis::normalizeSecNSecUnsigned (int64_t &sec, int64_t &nsec)
 

Detailed Description

Source file for the Time class.

Author
Willow Garage Inc.
Stefan Leutenegger
Andreas Forster

Macro Definition Documentation

#define HAS_CLOCK_GETTIME   (_POSIX_C_SOURCE >= 199309L)