I've crossposted the question here:
http://stackoverflow.com/questions/12360974/sbt-before-after-hooks-for-a-taskOn Thursday, September 6, 2012 11:57:19 AM UTC-5, Cosmin Radoi wrote:
How can I measure/log the running time of a task?
I've looked into "wrapping" a task by adding one task before and one task after but this would not work every time because sbt only guarantees a partial order. Right?
A better wrapping would be something along these lines:
wrappedTask := {
startMeasuringTime()
somehowInvoke(myTaskKey in SomeContext)
endMeasuringTime()
}
But I don't know what "somehowInvoke" should be.
Thanks!