summaryrefslogtreecommitdiffstats
path: root/src/core/utils/epoch.hh
blob: 5210e224b8e36a43ea45c6081f22349611c9eb19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2025 Kirill Dmitrievich
// File: epoch.hh
// Description: UNIX time utilities

#ifndef CORE_UTILS_EPOCH_HH
#define CORE_UTILS_EPOCH_HH
#pragma once

namespace utils
{
std::uint64_t unix_seconds(void);
std::uint64_t unix_milliseconds(void);
std::uint64_t unix_microseconds(void);
} // namespace utils

namespace utils
{
std::int64_t signed_unix_seconds(void);
std::int64_t signed_unix_milliseconds(void);
std::int64_t signed_unix_microseconds(void);
} // namespace utils

#endif