27.11.2014 Views

Working with date and time, time spans, time zones as well ... - Poco

Working with date and time, time spans, time zones as well ... - Poco

Working with date and time, time spans, time zones as well ... - Poco

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Timestamp Functions (cont'd)<br />

> void up<strong>date</strong>()<br />

up<strong>date</strong>s the Timestamp <strong>with</strong> the current <strong>time</strong><br />

> TimeDiff elapsed() const<br />

returns the microseconds elapsed since the <strong>time</strong> stored in the<br />

Timestamp<br />

> bool isElapsed(TimeDiff interval) const<br />

returns true if at le<strong>as</strong>t interval microseconds have p<strong>as</strong>sed since<br />

the <strong>time</strong> stored in the Timestamp

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!