debug-viewer: Display nanoseconds in the timestamp column

This commit is contained in:
Philippe Normand 2020-03-02 12:55:18 +00:00
parent d0e6c8a78c
commit b90c097eaa

View file

@ -156,16 +156,13 @@ class TimeColumn (TextColumn):
base_time = self.base_time
def format_time(value):
# TODO: Hard coded to omit trailing zeroes, see below.
return time_diff_args(value - base_time)[:-3]
return time_diff_args(value - base_time)
else:
time_args = Data.time_args
def format_time(value):
# TODO: This is hard coded to omit hours as well as the last 3
# digits at the end, since current gst uses g_get_current_time,
# which has microsecond precision only.
return time_args(value)[2:-3]
# TODO: This is hard coded to omit hours.
return time_args(value)[2:]
return format_time