ストップウォッチ
More...
#include <Stopwatch.hpp>
|
bool | operator< (const Stopwatch &s, const MicrosecondsF &time) |
| 経過時間を比較します。 More...
|
|
bool | operator<= (const Stopwatch &s, const MicrosecondsF &time) |
| 経過時間を比較します。 More...
|
|
bool | operator> (const Stopwatch &s, const MicrosecondsF &time) |
| 経過時間を比較します。 More...
|
|
bool | operator>= (const Stopwatch &s, const MicrosecondsF &time) |
| 経過時間を比較します。 More...
|
|
bool | operator< (const MicrosecondsF &time, const Stopwatch &s) |
| 経過時間を比較します。 More...
|
|
bool | operator<= (const MicrosecondsF &time, const Stopwatch &s) |
| 経過時間を比較します。 More...
|
|
bool | operator> (const MicrosecondsF &time, const Stopwatch &s) |
| 経過時間を比較します。 More...
|
|
bool | operator>= (const MicrosecondsF &time, const Stopwatch &s) |
| 経過時間を比較します。 More...
|
|
template<class CharType > |
std::basic_ostream< CharType > & | operator<< (std::basic_ostream< CharType > &output, const Stopwatch &value) |
|
void | Formatter (FormatData &formatData, const Stopwatch &value) |
|
◆ Stopwatch() [1/2]
ストップウォッチを作成します。
- Parameters
-
◆ Stopwatch() [2/2]
指定した時間だけ経過し一時停止している状態のストップウォッチを作成します。
- Parameters
-
startTime | 経過時間 |
startImmediately | 即座に計測を開始する場合は StartImmediately::Yes |
pSteadyClock | 基準時刻取得用のカスタム関数。nullptr の場合はシステム時刻 |
◆ d()
int32 s3d::Stopwatch::d |
( |
| ) |
const |
経過時間を [日] で返します。
- Returns
- 経過時間 [日]
◆ d64()
int64 s3d::Stopwatch::d64 |
( |
| ) |
const |
経過時間を [日] で返します。
- Returns
- 経過時間 [日]
◆ dF()
double s3d::Stopwatch::dF |
( |
| ) |
const |
経過時間を [日] で返します。
- Returns
- 経過時間 [日]
◆ elapsed()
Duration s3d::Stopwatch::elapsed |
( |
| ) |
const |
◆ format()
経過時間を文字列に変換します。 DD 日 (00-) D 日 (0-) dd 日 (00-) d 日 (0-) HH 時 (00-) H 時 (0-) hh 時 (00-24) h 時 (0-24) MM 分 (00-) M 分 (0-) mm 分 (00-59) m 分 (0-59) SS 秒 (00-) S 秒 (0-) ss 秒 (00-59) s 秒 (0-59) X ミリ秒 (0-) x 小数点以下 1 桁秒 (0-9) xx 小数点以下 2 桁秒 (00-99) xxx 小数点以下 3 桁秒 (000-999)
- Parameters
-
- Returns
- フォーマットされた時間
◆ h()
int32 s3d::Stopwatch::h |
( |
| ) |
const |
経過時間を [時] で返します。
- Returns
- 経過時間 [時]
◆ h64()
int64 s3d::Stopwatch::h64 |
( |
| ) |
const |
経過時間を [時] で返します。
- Returns
- 経過時間 [時]
◆ hF()
double s3d::Stopwatch::hF |
( |
| ) |
const |
経過時間を [時] で返します。
- Returns
- 経過時間 [時]
◆ isPaused()
bool s3d::Stopwatch::isPaused |
( |
| ) |
const |
|
noexcept |
ストップウォッチが一時停止中であるかを示します。
- Returns
- ストップウォッチが開始後一時停止中である場合 true, それ以外の場合は false
◆ isRunning()
bool s3d::Stopwatch::isRunning |
( |
| ) |
const |
|
noexcept |
ストップウォッチが時間を計測中であるかを示します。
- Returns
- ストップウォッチが開始されていて、なおかつ一時停止中でない場合 true, それ以外の場合は false
◆ isStarted()
bool s3d::Stopwatch::isStarted |
( |
| ) |
const |
|
noexcept |
ストップウォッチが動作中であるかを示します(開始後の一時停止も動作中に含みます)。
- Returns
- ストップウォッチが開始されている、または開始後一時停止中である場合 true, それ以外の場合は false
◆ min()
int32 s3d::Stopwatch::min |
( |
| ) |
const |
経過時間を [分] で返します。
- Returns
- 経過時間 [分]
◆ min64()
int64 s3d::Stopwatch::min64 |
( |
| ) |
const |
経過時間を [分] で返します。
- Returns
- 経過時間 [分]
◆ minF()
double s3d::Stopwatch::minF |
( |
| ) |
const |
経過時間を [分] で返します。
- Returns
- 経過時間 [分]
◆ ms()
int32 s3d::Stopwatch::ms |
( |
| ) |
const |
経過時間を [ミリ秒] で返します。
- Returns
- 経過時間 [ミリ秒]
◆ ms64()
int64 s3d::Stopwatch::ms64 |
( |
| ) |
const |
経過時間を [ミリ秒] で返します。
- Returns
- 経過時間 [ミリ秒]
◆ msF()
double s3d::Stopwatch::msF |
( |
| ) |
const |
経過時間を [ミリ秒] で返します。
- Returns
- 経過時間 [ミリ秒]
◆ pause()
void s3d::Stopwatch::pause |
( |
| ) |
|
◆ reset()
void s3d::Stopwatch::reset |
( |
| ) |
|
|
noexcept |
ストップウォッチを停止し、経過時間を 0 にリセットします。
◆ restart()
void s3d::Stopwatch::restart |
( |
| ) |
|
経過時間を 0 にリセットして、ストップウォッチを再び開始します。
◆ resume()
void s3d::Stopwatch::resume |
( |
| ) |
|
ストップウォッチが一時停止中である場合、再開します。
◆ s()
int32 s3d::Stopwatch::s |
( |
| ) |
const |
経過時間を [秒] で返します。
- Returns
- 経過時間 [秒]
◆ s64()
int64 s3d::Stopwatch::s64 |
( |
| ) |
const |
経過時間を [秒] で返します。
- Returns
- 経過時間 [秒]
◆ set()
void s3d::Stopwatch::set |
( |
const Duration & |
time | ) |
|
ストップウォッチの経過時間を変更します。
- Parameters
-
◆ sF()
double s3d::Stopwatch::sF |
( |
| ) |
const |
経過時間を [秒] で返します。
- Returns
- 経過時間 [秒]
◆ start()
void s3d::Stopwatch::start |
( |
| ) |
|
◆ us()
int64 s3d::Stopwatch::us |
( |
| ) |
const |
経過時間を [マイクロ秒] で返します。
- Returns
- 経過時間 [マイクロ秒]
◆ us64()
int64 s3d::Stopwatch::us64 |
( |
| ) |
const |
経過時間を [マイクロ秒] で返します。
- Returns
- 経過時間 [マイクロ秒]
◆ usF()
double s3d::Stopwatch::usF |
( |
| ) |
const |
経過時間を [マイクロ秒] で返します。
- Returns
- 経過時間 [マイクロ秒]
◆ Formatter
◆ operator< [1/2]
経過時間を比較します。
- Parameters
-
- Returns
- 比較の結果
◆ operator< [2/2]
経過時間を比較します。
- Parameters
-
- Returns
- 比較の結果
◆ operator<<
template<class CharType >
std::basic_ostream<CharType>& operator<< |
( |
std::basic_ostream< CharType > & |
output, |
|
|
const Stopwatch & |
value |
|
) |
| |
|
friend |
- Template Parameters
-
- Parameters
-
- Returns
◆ operator<= [1/2]
経過時間を比較します。
- Parameters
-
- Returns
- 比較の結果
◆ operator<= [2/2]
経過時間を比較します。
- Parameters
-
- Returns
- 比較の結果
◆ operator> [1/2]
経過時間を比較します。
- Parameters
-
- Returns
- 比較の結果
◆ operator> [2/2]
経過時間を比較します。
- Parameters
-
- Returns
- 比較の結果
◆ operator>= [1/2]
経過時間を比較します。
- Parameters
-
- Returns
- 比較の結果
◆ operator>= [2/2]
経過時間を比較します。
- Parameters
-
- Returns
- 比較の結果
The documentation for this class was generated from the following file: