Measure time
Batch counter