now measuring both time when data comes in and when data goes out