Re: Running time for a task

63 views
Skip to first unread message

Cosmin Radoi

unread,
Sep 10, 2012, 8:00:26 PM9/10/12
to simple-b...@googlegroups.com

I've crossposted the question here: http://stackoverflow.com/questions/12360974/sbt-before-after-hooks-for-a-task

On 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!

Reply all
Reply to author
Forward
0 new messages