The bug was, that we computed the difference between millis and nanos. Also log duration for flushes.