This question already has an answer here: How do I time a ... You can take timestamp snapshots before ...
stackoverflow.com