This is what i want to do:

```
const boost::posix_time::ptime now =
boost::posix_time::microsec_clock::local_time();
if (m_time != NULL && now - *m_time > this->m_iMediatime * 1000)
{
}

```

Which does not work because of the comparison

Then I tried constructing a ptime object, but I found no constructor that accepts milliseconds as integers, longs or similiar.

Finally I tried to get milliseconds from the ptime object but could not found a suitable method.

the type of m\_time is boost::posix\_time::ptime