Libkleo

chrono.h
1/*
2 utils/chrono.h
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 SPDX-FileCopyrightText: 2023 g10 Code GmbH
6 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
7
8 SPDX-License-Identifier: GPL-2.0-or-later
9*/
10
11#pragma once
12
13#include <QMetaType>
14
15#include <chrono>
16
17namespace Kleo::chrono
18{
19// typedef for duration in days (defined in C++20)
20using days = std::chrono::duration<std::chrono::seconds::rep, std::ratio<86400>>;
21}
22
23Q_DECLARE_METATYPE(Kleo::chrono::days)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.