CTimeSpan::operator +=, -=

const CTimeSpan& operator +=( CTimeSpan timeSpan );

const CTimeSpan& operator -=( CTimeSpan timeSpan );

Remarks

These operators allow you to add and subtract a CTimeSpan object to and from this CTimeSpan.

Example

// example for CTimeSpan::operator +=, -=
CTimeSpan ts1( 10 ); // 10 seconds
CTimeSpan ts2( 100 ); // 100 seconds
ts2 -= ts1;
ASSERT( ts2.GetTotalSeconds() == 90 );

CTimespan OverviewClass MembersHierarchy Chart