timeval構造体のための関数・演算子ライブラリ. [詳細]
#include <sys/time.h>関数 | |
| timeval | operator+ (const timeval &lhs, const timeval &rhs) |
| timeval同士の加算を行う. | |
| timeval | operator- (const timeval &lhs, const timeval &rhs) |
| timeval同士の減算を行う. | |
| bool | operator< (const timeval &lhs, const timeval &rhs) |
| timeval同士の比較を行う. | |
| bool | operator<= (const timeval &lhs, const timeval &rhs) |
| timeval同士の比較を行う. | |
| bool | operator> (const timeval &lhs, const timeval &rhs) |
| timeval同士の比較を行う. | |
| bool | operator>= (const timeval &lhs, const timeval &rhs) |
| timeval同士の比較を行う. | |
| void | TimerClear (timeval &tim) |
| timevalをクリアする. | |
| bool | TimerIsSet (const timeval &tim) |
| timevalに値が設定されているかどうか. | |
| double | TimevalToSeconds (const timeval &tim) |
timeval構造体のための関数・演算子ライブラリ.
このライブラリは、従来のtimeradd, timersub, timercmp, timerclear, timerissetマクロの代わりとなる 関数・演算子を提供する。 従来のマクロに比べ、このライブラリで提供する機能はC++の機能を用いて作られており、 安全・便利である。(ただし、従来のマクロを内部的に利用している)
| timeval operator+ | ( | const timeval & | lhs, | |
| const timeval & | rhs | |||
| ) | [inline] |
timeval同士の加算を行う.
| timeval operator- | ( | const timeval & | lhs, | |
| const timeval & | rhs | |||
| ) | [inline] |
timeval同士の減算を行う.
| bool operator< | ( | const timeval & | lhs, | |
| const timeval & | rhs | |||
| ) | [inline] |
timeval同士の比較を行う.
| bool operator<= | ( | const timeval & | lhs, | |
| const timeval & | rhs | |||
| ) | [inline] |
timeval同士の比較を行う.
| bool operator> | ( | const timeval & | lhs, | |
| const timeval & | rhs | |||
| ) | [inline] |
timeval同士の比較を行う.
| bool operator>= | ( | const timeval & | lhs, | |
| const timeval & | rhs | |||
| ) | [inline] |
timeval同士の比較を行う.
| void TimerClear | ( | timeval & | tim | ) | [inline] |
timevalをクリアする.
| bool TimerIsSet | ( | const timeval & | tim | ) | [inline] |
timevalに値が設定されているかどうか.
| double TimevalToSeconds | ( | const timeval & | tim | ) | [inline] |
1.7.1