ZeroErr
中/En
载入中...
搜索中...
未找到
time.h
浏览该文件的文档.
1
#pragma once
2
namespace
zeroerr
{
3
struct
Duration
{
4
double
seconds
= 0;
5
double
count
() const noexcept {
return
seconds
; }
6
Duration
&
operator+=
(
Duration
other) {
7
seconds
+= other.
seconds
;
8
return
*
this
;
9
}
10
template
<
class
T>
11
bool
operator>
(
const
T& other)
const
{
12
return
seconds
> other.count();
13
}
14
};
15
struct
Timestamp
{
16
long
long
nanoseconds
= 0;
17
};
18
}
// namespace zeroerr
zeroerr
定义
assert_text.cpp:5
zeroerr::Duration
定义
time.h:3
zeroerr::Duration::operator>
bool operator>(const T &other) const
定义
time.h:11
zeroerr::Duration::seconds
double seconds
定义
time.h:4
zeroerr::Duration::operator+=
Duration & operator+=(Duration other)
定义
time.h:6
zeroerr::Duration::count
double count() const noexcept
定义
time.h:5
zeroerr::Timestamp
定义
time.h:15
zeroerr::Timestamp::nanoseconds
long long nanoseconds
定义
time.h:16
include
zeroerr
internal
time.h
制作者
1.15.0