TICK_LENGTH should be in nano's instead of milliseconds, avoid silly conversions.