def log_activity_end(name, time = UnionStationHooks.now, has_error = false)
if time.is_a?(TimePoint)
if has_error
message "FAIL: #{name} (#{time.monotime.to_s(36)}," \
"#{time.utime.to_s(36)},#{time.stime.to_s(36)})"
else
message "END: #{name} (#{time.monotime.to_s(36)}," \
"#{time.utime.to_s(36)},#{time.stime.to_s(36)})"
end
else
if has_error
message "FAIL: #{name} (#{Utils.monotime_usec_from_time(time).to_s(36)})"
else
message "END: #{name} (#{Utils.monotime_usec_from_time(time).to_s(36)})"
end
end
end