I am using the gradle.buildFinished hook to capture various metrics at the end of a gradle build is it possible to capture the total time?
Simplified example:
gradle.buildFinished { buildResult ->
println "Tasks: " + tasks
println "Version: " + version
println "Plugins: " + plugins
println "Total time: " + time
}
Obviously time isnt a gradle project property, but i’m not sure how to get the total time.