timeNanosec() {
# Desc: Get epoch nanoseconds
- # Version 0.1.1
+ # Version 0.1.2
# Input: (none)
# Output: Nanoseconds since 1970-01-01
# Depends: date 8
+ local currentTime epochSeconds fracNanosec epochNanosec
currentTime="$(date +%s.%N)";
epochSeconds="$(echo "$currentTime" | cut -d. -f1)";
fracNanosec="$(echo "$currentTime" | cut -d. -f2)";