So actually the xquery function is
only the iniciator for the process in the background that I want to know
how long it takes.
Which "background" process do you mean? The functions you call will be
executed in sequence, within the same process. The transform extension
function will wait for the XSLT processor to complete its job.
Likewise, xdb:store will only return if the document has indeed be
stored (or generate an error otherwise). There's no concurrency here.
So why don't you just measure the time needed for the whole
local:transform function call? This can be done using the standard
time functions.
Wolfgang
|