-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HPCC-29468 Document STD.system.log.getElapsedMs
Signed-off-by: Jim DeFabia <[email protected]>
- Loading branch information
Jim DeFabia
committed
Oct 25, 2023
1 parent
c0ec1dc
commit 14220a1
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
docs/EN_US/ECLStandardLibraryReference/SLR-Mods/getElapsedMs.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" | ||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> | ||
<sect1 id="getElapsedMs"> | ||
<title>getElapsedMs</title> | ||
|
||
<para><emphasis>result</emphasis> <emphasis role="bold"> := | ||
STD.System.Log.getElapsedMs<indexterm> | ||
<primary>STD.System.Log.getElapsedMs</primary> | ||
</indexterm> <indexterm> | ||
<primary>System.Log.getElapsedMs</primary> | ||
</indexterm> <indexterm> | ||
<primary>Log.getElapsedMs</primary> | ||
</indexterm> <indexterm> | ||
<primary>getElapsedMs</primary> | ||
</indexterm></emphasis><emphasis></emphasis><emphasis role="bold"> | ||
();</emphasis></para> | ||
|
||
<informaltable colsep="1" frame="all" rowsep="1"> | ||
<tgroup cols="2"> | ||
<colspec colwidth="80.50pt" /> | ||
|
||
<colspec /> | ||
|
||
<tbody> | ||
<row> | ||
<entry>Return:</entry> | ||
|
||
<entry>getElapsedMs returns returns the elapsed time in | ||
milliseconds.</entry> | ||
</row> | ||
</tbody> | ||
</tgroup> | ||
</informaltable> | ||
|
||
<para>The <emphasis role="bold">getElapsedMs </emphasis>function returns the | ||
current elapsed query time (in ms) in Roxie.</para> | ||
|
||
<para><emphasis role="bold">For use in Roxie only</emphasis>. An error is | ||
returned if you try to run on Thor or hThor.</para> | ||
|
||
<para>Example:</para> | ||
|
||
<programlisting format="linespecific" lang="ECL" role="runnable">IMPORT STD; | ||
STD.System.Debug.Sleep (1054); // pause processing for 1054 milliseconds. | ||
OUTPUT(STD.System.Log.getElapsedMs(), NAMED('Elapsed')); //returns total time elapsed | ||
</programlisting> | ||
</sect1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters