I have request that sometimes give the http_req_duration time in seconds, sometimes in milli seconds and sometimes in micro seconds because of which I am not getting correct collective time when I am visualizing data. Can someone please help how in the code we can get all the time in seconds.
Can someone please help me this.
Do we have any such function in k6 yet through which we can convert all the time that we are getting in k6 reports into single unit, what’s happening now is some of the time I am getting in milli seconds, some in micro seconds and some in seconds so its difficult to convert the units in minutes. Can anyone please recommend any method that I can utilize from k6 to do this
Hi @nitisha !
It doesn’t sound about right. Are you talking about k6’s built-in
Could you please give more details? What’s the k6 version? Could you share your code samples (without any aspects of your business logic)?
And just in case, are you referring to the differences in the console output?
Can someone please help how in the code we can get all the time in seconds.
This metric uses a millisecond unit, and there is no way right now to adjust it.