A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/time_point below:

class template

<chrono>

std::chrono::time_point
template <class Clock, class Duration = typename Clock::duration>  class time_point;

Time point

A time_point object expresses a point in time relative to a clock's epoch.

Internally, the object stores an object of a duration type, and uses the Clock type as a reference for its epoch.



Template parameters
Clock
A clock class, such as system_clock, steady_clock, high_resolution_clock or a custom clock class.
Duration
A duration type.

Member types The following aliases are member types of time_point. They are widely used as parameter and return types by member functions:

member type definition notes clock The first template parameter (Clock) The clock class (either system_clock, steady_clock, high_resolution_clock or a custom clock class). duration The second template parameter (Duration) The duration type used to represent the time point. rep duration::rep Type returned by duration::count. period duration::period The ratio type that represents the length of a period in seconds.


Member functions
(constructor)
Construct time_point (public member function)
operators
Operators for time_point (function template)
time_since_epoch
Time since epoch (public member function)

static member functions
min
Minimum value of time_point (public static member function)
max
Maximum value of time_point (public static member function)

Non-member functions
operators
Operators for time_point (function template)

See also
duration
Duration (class template)
system_clock
System clock (class)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4