Vanetza
Loading...
Searching...
No Matches
clock_tm.hpp
1#pragma once
2#include <vanetza/common/clock.hpp>
3#include <ctime>
4
5namespace vanetza
6{
7
8/**
9* Convert a Clock::time_point to std::tm
10*
11* This function is intended as helper for printing time points.
12* You should stick with Clock::time_point for calculations.
13*
14*
15*
16* \param tp time point
17* \return representation of time point as tm structure
18*/
19std::tm its_time(Clock::time_point tp);
20
21} // namespace vanetza