|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Xquery function problemWolfgang Meier wolfgangmm at gmail.comThu Jan 25 23:12:48 PST 2007
> > 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. > > I don't believe so. The current time in the dynamic context > is stable - i.e. the same each time you call it within the > execution of a given query. Yes, sorry, that's correct. But as I sometimes want a quick and dirty way to measure elapsed time in a query, I use my own, non-stable function: util:system-time(), which simply maps to System.currentTimeMillis() in Java and returns xs:time. With this I can just do seconds-from-duration(util:system-time() - $startTime) Wolfgang
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







