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?
Asked
Active
Viewed 1,316 times
5
-
2Its in nanosecond, I cannot find any documentation related to it anyway – Wilfred Clement Jun 08 '20 at 16:28
-
3https://github.com/cucumber/cucumber-jvm/blob/1796209e02e4f61ab9c6504bfb800aaaaf411e25/core/src/main/java/io/cucumber/core/plugin/JsonFormatter.java#L327 – Grasshopper Jun 09 '20 at 04:34
2 Answers
3
It's nanos. Divide to 1'000'000'000 to get seconds value.
1 000 000 000
second millis micros nanos

DenisKolodin
- 13,501
- 3
- 62
- 65