Ignore:
Timestamp:
Jan 9, 2017, 11:09:38 AM (2 years ago)
Author:
jrpelegrina
Message:

Update new version: 3.15.02

File:
1 edited

Legend:

Unmodified
Added
Removed
  • filezilla/trunk/fuentes/src/engine/rtt.cpp

    r130 r3185  
    88int CLatencyMeasurement::GetLatency() const
    99{
    10         scoped_lock lock(m_sync);
     10        fz::scoped_lock lock(m_sync);
    1111        if (!m_measurements)
    1212                return -1;
     
    1717bool CLatencyMeasurement::Start()
    1818{
    19         scoped_lock lock(m_sync);
     19        fz::scoped_lock lock(m_sync);
    2020        if (m_start)
    2121                return false;
    2222
    23         m_start = CMonotonicClock::now();
     23        m_start = fz::monotonic_clock::now();
    2424
    2525        return true;
     
    2828bool CLatencyMeasurement::Stop()
    2929{
    30         scoped_lock lock(m_sync);
     30        fz::scoped_lock lock(m_sync);
    3131        if (!m_start)
    3232                return false;
    3333
    34         duration const diff = CMonotonicClock::now() - m_start;
    35         m_start = CMonotonicClock();
     34        fz::duration const diff = fz::monotonic_clock::now() - m_start;
     35        m_start = fz::monotonic_clock();
    3636
    3737        if (diff.get_milliseconds() < 0)
     
    4646void CLatencyMeasurement::Reset()
    4747{
    48         scoped_lock lock(m_sync);
     48        fz::scoped_lock lock(m_sync);
    4949        m_summed_latency = 0;
    5050        m_measurements = 0;
    51         m_start = CMonotonicClock();
     51        m_start = fz::monotonic_clock();
    5252}
    5353
Note: See TracChangeset for help on using the changeset viewer.