#include <ktime.h>
Definition at line 476 of file ktime.h.
Public Member Functions | |
| KTimeSpan () | |
| Constructor. | |
| KTimeSpan (KTime pStart, KTime pStop) | |
| Constructor. | |
| void | Set (KTime pStart, KTime pStop) |
| Set start and stop time. | |
| void | SetStart (KTime pStart) |
| Set start time. | |
| void | SetStop (KTime pStop) |
| Set stop time. | |
| KTime & | GetStart () |
| Get start time. | |
| KTime & | GetStop () |
| Get stop time. | |
| KTime | GetDuration () const |
| Get time interval in absolute value. | |
| KTime | GetSignedDuration () const |
| Get time interval. | |
| int | GetDirection () const |
| Get direction of the time interval. | |
| bool | operator & (KTime &pTime) const |
Return true if the time is inside the timespan. | |
| KTimeSpan | operator & (KTimeSpan &pTime) const |
| Return the intersection of the two time spans. | |
| bool | operator!= (KTimeSpan &pTime) |
| Return the intersection of the two time spans. | |
| void SetStart | ( | KTime | pStart | ) | [inline] |
| void SetStop | ( | KTime | pStop | ) | [inline] |
| KTime& GetStart | ( | ) | [inline] |
| KTime& GetStop | ( | ) | [inline] |
| KTime GetDuration | ( | ) | const [inline] |
| KTime GetSignedDuration | ( | ) | const [inline] |
| int GetDirection | ( | ) | const [inline] |
Get direction of the time interval.
KTS_FORWARD if time interval is forward, KTS_BACKWARD if backward. Definition at line 529 of file ktime.h.
References KTS_BACKWARD, and KTS_FORWARD.
| bool operator & | ( | KTime & | pTime | ) | const |
Return true if the time is inside the timespan.
| bool operator!= | ( | KTimeSpan & | pTime | ) |
Return the intersection of the two time spans.