Our system listens to every tick received and at end of the minute we generate a candle and store it in the database. This happens for all the instruments that are traded on the day. Since it involves a database write, one can't say that at the exact end of the minute a candle will be available there can be 10 to 15 seconds delay.