Added method to get time as a string that may be adjusted to nanoseconds, microseconds, milliseconds based on the time.