nanosecping.sh: initial commit. the script still has many improvements