replace timeval and time_t with boost::posix_time::ptime

This commit is contained in:
Andrzej Rybczak
2014-08-27 11:14:07 +02:00
parent 7fdace835b
commit b7ceae7273
17 changed files with 75 additions and 78 deletions

View File

@@ -2593,7 +2593,7 @@ void seek()
Statusbar::lock();
unsigned songpos = Status::State::elapsedTime();
timeval t = Timer;
auto t = Timer;
int old_timeout = wFooter->getTimeout();
wFooter->setTimeout(500);
@@ -2605,9 +2605,10 @@ void seek()
while (true)
{
Status::trace();
myPlaylist->UpdateTimer();
unsigned howmuch = Config.incremental_seeking ? (Timer.tv_sec-t.tv_sec)/2+Config.seek_time : Config.seek_time;
unsigned howmuch = Config.incremental_seeking
? (Timer-t).seconds()/2+Config.seek_time
: Config.seek_time;
Key input = Key::read(*wFooter);
auto k = Bindings.get(input);