Added support to take time stamps at read and write
Fixed a bug in latency measurements