-
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
Nov 7, 2023
1 parent
c0ec1dc
commit b4d19f3
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
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,54 @@ | ||
<?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>This is the elapsed time when STD.System.Log.getElapsedMs() is called. | ||
Because ECL is a declarative language, code is not necessarily executed in | ||
sequence. You have to be careful when trying to get the elapsed time for a | ||
particular point in your code. You can look at the Workunit graphs to see | ||
the exact point at which the activity executes. </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