How to Increase the Precision of Log Time ?

Updated Feb 20, 2020

Reported In

Software

  • LabVIEW

Issue Details

I want to log the time data for my application but when I log the data, the time only log until second. May I know how to increase the precision of the time value?
 

Solution

You can use Format Date/Time String function in LabVIEW to log the time data. In order to increase the precision of time, at the time format string constant you need to add %<digit>u after %S. The example below show the format string constant is using %I:%M:%S%3u %p, it mean the precision of the second value will be increase to 3 decimal point. Here are more information about Format Codes for the Time Format String.
This is the sample of the logged time result :