chore(unitproc):timeEpochNS:Rename timeNanosec -> timeEpochNS
[BK-2020-03.git] / unitproc / bktemp-timeNanosec
diff --git a/unitproc/bktemp-timeNanosec b/unitproc/bktemp-timeNanosec
deleted file mode 100644 (file)
index 1fe077f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-# Desc: Get timestamp in nanoseconds
-
-timeNanosec() {
-    # Desc: Get epoch nanoseconds
-    # 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)";
-    epochNanosec="$(( ("$epochSeconds" * 1000000000) + ("$fracNanosec") ))";
-    echo "$epochNanosec";
-} # Nanoseconds since 1970-01-01
-
-#==BEGIN sample code==
-echo "It's been $(timeNanosec) nanoseconds since 1970-01-01.";
-#==END sample code==
-
-# Author: Steven Baltakatei Sandoval
-# License: GPLv3+