changed time to milliseconds.
improved time output.