What is the unit of duration in cucumber report json file?

Viewed 850

Can anyone tell me what is the unit of duration, found inside step.result captured inside cucumber reporting json? Is it millisecond, microsecond, nanosecond or anything else?

2 Answers

It's nanos. Divide to 1'000'000'000 to get seconds value.

1       000     000     000

second  millis  micros  nanos

Source

For me at least its Microseconds

I.e.

"Duration": 8303000000

Means 8.303 Seconds

Related