time/Convert: forward-declare struct tm
This commit is contained in:
parent
a739eefb01
commit
2ce8310448
|
@ -2,11 +2,12 @@
|
||||||
// Copyright CM4all GmbH
|
// Copyright CM4all GmbH
|
||||||
// author: Max Kellermann <mk@cm4all.com>
|
// author: Max Kellermann <mk@cm4all.com>
|
||||||
|
|
||||||
#ifndef TIME_CONVERT_HXX
|
#pragma once
|
||||||
#define TIME_CONVERT_HXX
|
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
|
struct tm;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a UTC-based time point to a UTC-based "struct tm".
|
* Convert a UTC-based time point to a UTC-based "struct tm".
|
||||||
*
|
*
|
||||||
|
@ -40,5 +41,3 @@ MakeTime(struct tm &tm) noexcept;
|
||||||
[[gnu::pure]]
|
[[gnu::pure]]
|
||||||
std::chrono::steady_clock::duration
|
std::chrono::steady_clock::duration
|
||||||
ToSteadyClockDuration(const struct timeval &tv) noexcept;
|
ToSteadyClockDuration(const struct timeval &tv) noexcept;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue