Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CTimeSpan::operator +=, -=
CTimeSpan                                   Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  const CTimeSpan& operator +=( CTimeSpan timeSpan );
  const CTimeSpan& operator -=( CTimeSpan timeSpan );
 
  Remarks
 
  These operators allow you to add and subtract a CTimeSpan to and from
  this CTimeSpan.
 
  Example
 
  CTimeSpan ts1( 10 ); // 10 seconds
  CTimeSpan ts2( 100 ); // 100 seconds
  ts2 -= ts1;
  ASSERT( ts2.GetTotalSeconds() == 90 );
 
 
 
                                     -♦-