コード例 #1
0
inline highperformance_counter::interval_type highperformance_counter::get_microseconds() const
{
    highperformance_counter::interval_type  result;
    highperformance_counter::interval_type  count   =   get_period_count();

    if(count < STLSOFT_GEN_SINT64_SUFFIX(0x8637BD05AF6))
    {
        result = (count * interval_type(1000000)) / frequency_();
    }
    else
    {
        result = (count / frequency_()) * interval_type(1000000);
    }

    return result;
}
コード例 #2
0
ファイル: systemtime_counter.hpp プロジェクト: JerYme/stlsoft
inline systemtime_counter::interval_type systemtime_counter::get_microseconds() const
{
    return get_period_count() / interval_type(10);
}
コード例 #3
0
inline processtimes_counter::interval_type processtimes_counter::get_microseconds() const
{
    return get_period_count() / interval_type(10);
}
コード例 #4
0
inline highperformance_counter::interval_type highperformance_counter::get_seconds() const
{
    return get_period_count() / frequency_();
}