class Makit::Humanize

def self.get_protobuf_duration(duration)

def self.get_protobuf_duration(duration)
  total_seconds = duration.seconds + (duration.nanos / 1_000_000_000.0)
  hours = (total_seconds / 3600).to_i
  minutes = ((total_seconds % 3600) / 60).to_i
  seconds = (total_seconds % 60).round(2)
  "#{hours}h #{minutes}m #{seconds}s"
end