src: Linux command to get time in milliseconds
date +”%T.%N” returns the current time with nanoseconds.
date +”%T.%6N” returns the current time with nanoseconds rounded to the first 6 digits, which is microseconds.
date +”%T.%3N” returns the current time with nanoseconds rounded to the first 3 digits, which is milliseconds.