std::chrono::gps_clock - Man Page

Synopsis

Public Types

using duration = chrono::duration< rep, period >
using period = system_clock::period
using rep = system_clock::rep
using time_point = chrono::time_point< gps_clock >

Static Public Member Functions

template<typename _Duration > static gps_time< common_type_t< _Duration, seconds > > from_utc (const utc_time< _Duration > &__t)
static time_point now ()
template<typename _Duration > static utc_time< common_type_t< _Duration, seconds > > to_utc (const gps_time< _Duration > &__t)

Static Public Attributes

static constexpr bool is_steady

Detailed Description

A clock that measures GPS time.

The epoch is 1980-01-06 00:00:00.

Since

C++20

Definition at line 206 of file chrono.

Member Typedef Documentation

using std::chrono::gps_clock::duration =  chrono::duration<rep, period>

Definition at line 211 of file chrono.

using std::chrono::gps_clock::period =  system_clock::period

Definition at line 210 of file chrono.

using std::chrono::gps_clock::rep =  system_clock::rep

Definition at line 209 of file chrono.

using std::chrono::gps_clock::time_point =  chrono::time_point<gps_clock>

Definition at line 212 of file chrono.

Member Function Documentation

template<typename _Duration > static gps_time< common_type_t< _Duration, seconds > > std::chrono::gps_clock::from_utc (const utc_time< _Duration > & __t) [inline], [static]

Definition at line 233 of file chrono.

static time_point std::chrono::gps_clock::now () [inline], [static]

Definition at line 218 of file chrono.

template<typename _Duration > static utc_time< common_type_t< _Duration, seconds > > std::chrono::gps_clock::to_utc (const gps_time< _Duration > & __t) [inline], [static]

Definition at line 224 of file chrono.

Member Data Documentation

constexpr bool std::chrono::gps_clock::is_steady [static], [constexpr]

Definition at line 213 of file chrono.

Author

Generated automatically by Doxygen for libstdc++ from the source code.

Info

Thu Jan 19 2023 libstdc++