Changes

Jump to navigation Jump to search
1,288 bytes added ,  21:04, 20 July 2012
no edit summary
* {{Code|prof:time("1 to 100000")}} may output {{Code|25.69 ms}}.
* {{Code|prof:time("1 to 100000", true())}} may output {{Code|208.12 ms}}.
|-
| '''Properties'''
|The function is ''non-deterministic''.
|}
* {{Code|prof:mb("1 to 100000")}} may output {{Code|0 Bytes}}.
* {{Code|prof:mb("1 to 100000", true())}} may output {{Code|26.678 mb}}.
|-
| '''Properties'''
|The function is ''non-deterministic''.
|}
| '''Summary'''
|Sleeps for the specified number of milliseconds.
|-
| '''Properties'''
|The function is ''non-deterministic''.
|}
 
==prof:current-ms==
 
{{Mark|Introduced with Version 7.4:}}
 
{|
|-
| width='90' | '''Signatures'''
|{{Func|prof:current-ms||xs:integer}}<br />
|-
| '''Summary'''
|Returns the number of milliseconds passed since 1970/01/01 UTC. The granularity of the value depends on the underlying operating system and may be larger. For example, many operating systems measure time in units of tens of milliseconds.
|-
| '''Properties'''
|In contrast to {{Code|fn:current-time()}}, the function is ''non-deterministic'', as it returns different values every time it is called.
|}
 
==prof:current-ns==
 
{{Mark|Introduced with Version 7.4:}}
 
{|
|-
| width='90' | '''Signatures'''
|{{Func|prof:current-ns||xs:integer}}<br />
|-
| '''Summary'''
|Returns the current value of the most precise available system timer in nanoseconds.
|-
| '''Properties'''
|In contrast to {{Code|fn:current-time()}}, the function is ''non-deterministic'', as it returns different values every time it is called.
|}
=Changelog=
 
;Version 7.4
 
* Added: <code>[[#prof:current-ms|prof:current-ms]]</code>, <code>[[#prof:current-ns|prof:current-ns]]</code>
This module was introduced with Version 7.3.
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu