Bug fixes for transmission delay and packet creation time.

1) The transmission delay was not using a floating point calculation.
2) The packet creation time was done when the packet was allocated instead
of when it was first added to the scheduler.