MIAOU-BASH is a collection of settings and helpers for leveraging BASH. Developer-friendly, it may be used as solo package with or without the miaou project.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
188 B

  1. #!/bin/bash
  2. START=$(date +%s.%N)
  3. eval -- "$*"
  4. END=$(date +%s.%N)
  5. DIFF=$(echo "scale=6; (${END} - ${START}) / 1" | bc)
  6. printf -- "-----------------\nelapsed seconds = %f\n" "${DIFF}" >&2