Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to parse a time duration of the format "4s", "9.1ms", etc.

$
0
0
The default duration output from go (golang) is to use a single float with one or two characters identifying the unit, ex: 56.920404ms 4.61µs 45.1s etc. I can't seem to find a built-in way to convert these. How can it be done?

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>