timeNanosec() {
# Desc: Get epoch nanoseconds
- # Version 0.1.0
+ # Version 0.1.1
# Input: (none)
# Output: Nanoseconds since 1970-01-01
# Depends: date 8
fracNanosec="$(echo "$currentTime" | cut -d. -f2)";
epochNanosec="$(( ("$epochSeconds" * 1000000000) + ("$fracNanosec") ))";
echo "$epochNanosec";
-}
+} # Nanoseconds since 1970-01-01
#==BEGIN sample code==
echo "It's been $(timeNanosec) nanoseconds since 1970-01-01.";