yet another attempt to fix time calculation.
Now we check time just before  start of transmit and then after last
buffer acknowledged.