move animation time api to use nanoseconds

This commit is contained in:
Konstantin Käfer
2014-04-30 14:20:15 +02:00
parent 61442748ab
commit 4afe20776d
10 changed files with 73 additions and 60 deletions

View File

@@ -288,7 +288,7 @@ double Map::getAngle() const {
}
void Map::resetNorth() {
transform.setAngle(0, 0.5);
transform.setAngle(0, 500_milliseconds);
update();
}
@@ -349,7 +349,7 @@ void Map::prepare() {
view.make_active();
// Update animations
animationTime = (double)util::now() / 1e9;
animationTime = util::now();
bool animating = transform.needsAnimation();
if (animating) {
transform.updateAnimations(animationTime);