Fixposition SDK 0.0.0-heads/main-0-g90a51ff
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
time.hpp File Reference

Fixposition SDK: Time utilities. More...

#include <chrono>
#include <cstdint>
#include <ctime>
#include <string>
Include dependency graph for time.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fpsdk::common::time::TicToc
 Helper to measure wallclock time. More...
 
struct  fpsdk::common::time::RosTime
 Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw) More...
 
class  fpsdk::common::time::Duration
 Time duration. More...
 
struct  fpsdk::common::time::WnoTow
 GNSS atomic time representation: week number (wno) and time of week (tow) used by GPS, Galileo and BeiDou. More...
 
struct  fpsdk::common::time::GloTime
 GLONASS time. More...
 
struct  fpsdk::common::time::UtcTime
 UTC time representation. More...
 
class  fpsdk::common::time::Time
 Time. More...
 

Namespaces

namespace  fpsdk
 Fixposition SDK.
 
namespace  fpsdk::common
 Fixposition SDK: Common library.
 
namespace  fpsdk::common::time
 Time utilities.
 

Functions

uint64_t fpsdk::common::time::GetMillis ()
 Get milliseconds [ms], monotonic time.
 
double fpsdk::common::time::GetSecs ()
 Get seconds [s], monotonic time.
 

Variables

static constexpr int fpsdk::common::time::SEC_IN_MIN_I = 60
 Constants.
 
static constexpr int fpsdk::common::time::SEC_IN_HOUR_I = 60 * SEC_IN_MIN_I
 Number of seconds in an hour (integer)
 
static constexpr int fpsdk::common::time::SEC_IN_DAY_I = 24 * SEC_IN_HOUR_I
 Number of seconds in a day (integer)
 
static constexpr int fpsdk::common::time::SEC_IN_WEEK_I = 7 * SEC_IN_DAY_I
 Number of seconds in a week (integer)
 
static constexpr double fpsdk::common::time::SEC_IN_MIN_D = static_cast<double>(SEC_IN_MIN_I)
 Number of seconds in a minute (double)
 
static constexpr double fpsdk::common::time::SEC_IN_HOUR_D = static_cast<double>(SEC_IN_HOUR_I)
 Number of seconds in an hour (double)
 
static constexpr double fpsdk::common::time::SEC_IN_DAY_D = static_cast<double>(SEC_IN_DAY_I)
 Number of seconds in a day (double)
 
static constexpr double fpsdk::common::time::SEC_IN_WEEK_D = static_cast<double>(SEC_IN_WEEK_I)
 Number of seconds in a week (double)
 

Detailed Description

Fixposition SDK: Time utilities.

* ___    ___
* \  \  /  /
*  \  \/  /   Copyright (c) Fixposition AG (www.fixposition.com) and contributors
*  /  /\  \   License: see the LICENSE file
* /__/  \__\
*
* Parts copyright (c) 2008, Willow Garage, Inc., see time.cpp and the LICENSE file for details
* Based on work by flipflip (https://github.com/phkehl)
* 

Definition in file time.hpp.