caches the time every 100 ms and use the cache where high resolution timer is not needed

This commit is contained in:
Arvid Norberg
2009-05-25 02:45:51 +00:00
parent 95c3367b5e
commit 30c704523c
5 changed files with 50 additions and 28 deletions

View File

@@ -4575,7 +4575,7 @@ namespace libtorrent
int ret = 0;
ptime now(time_now());
ptime now = time_now();
int seed_time = total_seconds(m_seeding_time);
int download_time = total_seconds(m_active_time) - seed_time;