timestamp() {
  if [ "$1" = "start" ]; then
    time_duration=$(date "+%s")
  else
    time_duration=$(($(date "+%s") - "${time_duration}"))
    # shellcheck disable=SC2312
    echo "$(date -d@"${time_duration}" "+%H:%M:%S%z") H:M:S"
  fi
}

duration() {
  seconds="$1"
  formatted_time=$(date -d @"${seconds}" "+%Hh %Mm %Ss%z")
  echo "${formatted_time}"
}
