Added clock to measure difference from gate to gate