I can't answer your question directly, but I'm not sure I understand why it's necessary. If you know the data collection rate, the data size, and the write time, why can't you simply manage accordingly? Or, is the issue that you need to know the exact time a measurement was taken, and you can't rely on that 0.5 ms being accurate?