In XQuery the time of day is a static property fixed for the duration of the transformation.
. . . . . . . . . Ken At 2011-06-22 18:23 +0000, Wang, Ningjun (LNG-NPV) wrote: >I am new to xquery and MarkLogic. I need to measure the time >duration of certain heavy duty xquery function call. Here is the sample code > >let $t1 := current-dateTime() >let $r := some_long_running_function() >let $t2 := current-dateTime() >return ($t1, $t2, $t2 - $t1) > >I found that $t1 and $t2 are always the same no matter how long the >function run. Here is an example result > > <v:results v:warning="more than one node" > xmlns:v="com.marklogic.developer.cq.view">2011-06-22T14:17:55.35-04:00 > 2011-06-22T14:17:55.35-04:00 PT0S</v:results> > >What did I do run? How can I measure the time duration of the >function some_long_running_function()? > >Thanks > > >Ningjun Wang >Consulting Software Engineer > >LexisNexis Global Solutions Dev >New Providence, NJ >(908) 665-6787 -- Contact us for world-wide XML consulting & instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/q/ G. Ken Holman mailto:[email protected] Legal business disclaimers: http://www.CraneSoftwrights.com/legal _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
