예제 #1
0
boost::posix_time::ptime ConstConnection::finished_time() const
{
    return ib_to_ptime(ib()->tv_created, (ib()->t.finished - ib()->t.started));
}
예제 #2
0
파일: clock.cpp 프로젝트: B0SB05/ironbee
boost::posix_time::ptime ib_to_ptime(ib_timeval_t tv, ib_time_t offset)
{
    return ib_to_ptime(tv)
           + seconds(offset / c_microseconds_per_second)
           + microseconds(offset % c_microseconds_per_second);
}
예제 #3
0
boost::posix_time::ptime ConstConnection::started_time() const
{
    return ib_to_ptime(ib()->tv_created);
}
예제 #4
0
boost::posix_time::ptime ConstTransaction::response_finished_time() const
{
    return ib_to_ptime(ib()->tv_created,
                       (ib()->t.response_finished - ib()->t.started));
}
예제 #5
0
boost::posix_time::ptime ConstTransaction::request_body_time() const
{
    return ib_to_ptime(ib()->tv_created,
                       (ib()->t.request_body - ib()->t.started));
}
예제 #6
0
boost::posix_time::ptime ConstTransaction::logtime_time() const
{
    return ib_to_ptime(ib()->tv_created,
                       (ib()->t.logtime - ib()->t.started));
}
예제 #7
0
boost::posix_time::ptime ConstTransaction::postprocess_time() const
{
    return ib_to_ptime(ib()->tv_created,
                       (ib()->t.postprocess - ib()->t.started));
}