この演算子は、小さいかを確認するに CFileTime の 2 種類のオブジェクトを比較します。
bool operator<(
CFileTime ft
) const throw( );
パラメーター
- ft
比較する CFileTime オブジェクト。
戻り値
最初のオブジェクトが 2 番未満 (前の時点では) である場合 true、別の方法で false を返します。
使用例
// Test for one time less than another
// Declare the CFileType objects
CFileTime myFT1, myFT2;
// Obtain the first time value
myFT1 = CFileTime::GetCurrentTime();
// Pause for a moment...
Sleep(1000);
// Obtain the second time value
myFT2 = CFileTime::GetCurrentTime();
// Perform the comparison
if (myFT1 < myFT2)
_tprintf_s(_T("Time is going in the correct direction.\n"));
else
_tprintf_s(_T("Oh dear. Time is going backwards.\n"));
必要条件
ヘッダー : atltime.h