X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/5b497be80e49d3b469d3c5f95ba2cb1e67712c26..d0dc71daab5a11433154932114390b208e3b087f:/unitproc/bktemp-timeNanosec diff --git a/unitproc/bktemp-timeNanosec b/unitproc/bktemp-timeNanosec index 0c38cb9..1fe077f 100644 --- a/unitproc/bktemp-timeNanosec +++ b/unitproc/bktemp-timeNanosec @@ -3,10 +3,11 @@ 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)";