Current-time() doesn't work properly with the new snapshot?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Current-time() doesn't work properly with the new snapshot?

Avril Crack
I made this query
 
===============================================
let $start:=current-time();
return
 f:do-query(),  ------> a function to excute a complex query
 <time>Request served in {current-time()-$start} seconds</time>
===============================================
 
This used to work with the beta version but with the new snapshot it always return 0.0000S for all query.
 
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Current-time() doesn't work properly with the new snapshot?

Pierrick Brihaye
Hi,

[switched your message to plain-text]

Avril Crack wrote:

> ===============================================
> let $start:=current-time();
> return
>  f:do-query(),  ------> a function to excute a complex query
>  <time>Request served in {current-time()-$start} seconds</time>
> ===============================================

fn:current-time is *stable* (see
http://www.w3.org/TR/xpath-functions/#func-current-time).

Use util:system-time() introduced 10/12 or the query profiler for this
specific kind of use.

Cheers,

p.b.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open