Commit b2e9ab1e authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlProfiler: displaying event durations in milliseconds

Change-Id: Idec442d744891bae8c9986717c32283a9440db9b
Reviewed-on: http://codereview.qt.nokia.com/531

Reviewed-by: default avatarChristiaan Janssen <christiaan.janssen@nokia.com>
parent 98ed0164
......@@ -71,7 +71,9 @@ BorderImage {
anchors.top: typeTitle.bottom
Detail {
label: "Duration"
content: rangeDetails.duration + "μs"
content: rangeDetails.duration < 1000 ?
rangeDetails.duration + "μs" :
Math.floor(rangeDetails.duration/1000) + "ms"
}
Detail {
opacity: content.length !== 0 ? 1 : 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment