mn_timestamp.hpp File Reference

This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniThread ). More...

#include "mn_config.hpp"
#include "mn_limits.hpp"
#include "mn_timespan.hpp"

Go to the source code of this file.

Classes

class  mn::basic_timestamp
 A Timestamp stores a monotonic* time value with microseconds resolution. More...
 

Namespaces

 mn
 

Macros

#define MINILIB_TIMESTAMP_RESELUTION   1000000
 
#define MINILIB_TIMESTAMP_TIME_TYPE   typename basic_timespan::time_type
 
#define MINILIB_TIMESTAMP_MIN   mn::numeric_limits<MINILIB_TIMESTAMP_TIME_TYPE>::min()
 
#define MINILIB_TIMESTAMP_MAX   mn::numeric_limits<MINILIB_TIMESTAMP_TIME_TYPE>::max()
 

Typedefs

using mn::timestamp_t = basic_timestamp
 

Functions

void mn::swap (basic_timestamp a, basic_timestamp b)
 

Detailed Description

This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniThread ).

Author
Copyright (c) 2021 Amber-Sophia Schroeck
License
The Mini Thread Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3, or (at your option) any later version.

The Mini Thread Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Mini Thread Library; if not, see https://www.gnu.org/licenses/.

Macro Definition Documentation

◆ MINILIB_TIMESTAMP_MAX

#define MINILIB_TIMESTAMP_MAX   mn::numeric_limits<MINILIB_TIMESTAMP_TIME_TYPE>::max()

◆ MINILIB_TIMESTAMP_MIN

#define MINILIB_TIMESTAMP_MIN   mn::numeric_limits<MINILIB_TIMESTAMP_TIME_TYPE>::min()

◆ MINILIB_TIMESTAMP_RESELUTION

#define MINILIB_TIMESTAMP_RESELUTION   1000000

◆ MINILIB_TIMESTAMP_TIME_TYPE

#define MINILIB_TIMESTAMP_TIME_TYPE   typename basic_timespan::time_type