Make millisecondsBetweenTicks return signed values

Fixes #1