xtd 0.2.0
Loading...
Searching...
No Matches
time_span.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../time_span.hpp"
6
8namespace xtd {
10 inline namespace literals {
12
25 [[nodiscard]] auto operator""_h(unsigned long long h) -> xtd::time_span;
26
38 [[nodiscard]] auto operator""_m(unsigned long long m) -> xtd::time_span;
39
51 [[nodiscard]] auto operator""_min(unsigned long long min) -> xtd::time_span;
52
64 [[nodiscard]] auto operator""_ms(unsigned long long ms) -> xtd::time_span;
65
77 [[nodiscard]] auto operator""_ns(unsigned long long ns) -> xtd::time_span;
78
90 [[nodiscard]] auto operator""_s(unsigned long long s) -> xtd::time_span;
91
103 [[nodiscard]] auto operator""_t(unsigned long long t) -> xtd::time_span;
104
116 [[nodiscard]] auto operator""_us(unsigned long long us) -> xtd::time_span;
117
129 [[nodiscard]] auto operator""_ts(const char* s, xtd::size n) -> xtd::time_span;
130
142 [[nodiscard]] auto operator""_ts(const char8* s, xtd::size n) -> xtd::time_span;
143
155 [[nodiscard]] auto operator""_ts(const char16* s, xtd::size n) -> xtd::time_span;
156
168 [[nodiscard]] auto operator""_ts(const char32* s, xtd::size n) -> xtd::time_span;
169
181 [[nodiscard]] auto operator""_ts(const wchar* s, xtd::size n) -> xtd::time_span;
183 }
184}
Represents a time interval.
Definition time_span.hpp:29
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
char8_t char8
Represents a 8-bit unicode character.
Definition char8.hpp:26
wchar_t wchar
Represents a wide character.
Definition wchar.hpp:24
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:23
@ s
The S key.
Definition console_key.hpp:124
@ h
The H key.
Definition console_key.hpp:102
@ m
The M key.
Definition console_key.hpp:112
@ n
The N key.
Definition console_key.hpp:114
@ t
The T key.
Definition console_key.hpp:126
The xtd::literals namespace contains all xtd's litterals operators.
Definition byte.hpp:14
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::time_span class.