currentTime="$(date +%s.%N)";
epochSeconds="$(echo "$currentTime" | cut -d. -f1)";
fracNanosec="$(echo "$currentTime" | cut -d. -f2)";
epochNanosec="$(( ("$epochSeconds" * 1000000000) + ("$fracNanosec") ))";
echo "$epochNanosec";
currentTime="$(date +%s.%N)";
epochSeconds="$(echo "$currentTime" | cut -d. -f1)";
fracNanosec="$(echo "$currentTime" | cut -d. -f2)";
epochNanosec="$(( ("$epochSeconds" * 1000000000) + ("$fracNanosec") ))";
echo "$epochNanosec";