Poco TimeStamps and Timespans
<p>I'm trying to use Poco time classes to calculate some timing in my program. I want to detect a time out in a thread. </p>

<p>I'm creating first a timespan denoting my timout time, a timestamp for when the thread was started, and a check for if the current timespan is larger than the timeout time, i.e.</p>

<pre><code>Poco::Timestamp startTime;
Poco::Timespan timeOutTime(60*Poco::Timespan::SECONDS); // 60s timeout
</code></pre>

<p>I want to check for the timeout in a timer function:</p>

<pre><code>bool Process::isTimedOut()
{
    Timestamp now;
    if((now - startTime) &gt; timeOutTime)
    {
        return true;
    }
    else
    {
        return false;
    }
}
</code></pre>

<p>However, the check for timeout in the above if statement do not compile: saying illegal structure operation.</p>

<p>Any clues on how to use these poco classes?</p>