From b4d19f3b6fb99fb016b680c39b32f126a9daacf2 Mon Sep 17 00:00:00 2001 From: Jim DeFabia Date: Tue, 24 Oct 2023 13:49:46 -0400 Subject: [PATCH] HPCC-29468 Document STD.system.log.getElapsedMs Signed-off-by: Jim DeFabia --- .../SLR-Mods/getElapsedMs.xml | 54 +++++++++++++++++++ .../SLR-includer.xml | 3 ++ 2 files changed, 57 insertions(+) create mode 100644 docs/EN_US/ECLStandardLibraryReference/SLR-Mods/getElapsedMs.xml diff --git a/docs/EN_US/ECLStandardLibraryReference/SLR-Mods/getElapsedMs.xml b/docs/EN_US/ECLStandardLibraryReference/SLR-Mods/getElapsedMs.xml new file mode 100644 index 00000000000..a2037822104 --- /dev/null +++ b/docs/EN_US/ECLStandardLibraryReference/SLR-Mods/getElapsedMs.xml @@ -0,0 +1,54 @@ + + + + getElapsedMs + + result := + STD.System.Log.getElapsedMs + STD.System.Log.getElapsedMs + + System.Log.getElapsedMs + + Log.getElapsedMs + + getElapsedMs + + (); + + + + + + + + + + Return: + + getElapsedMs returns returns the elapsed time in + milliseconds. + + + + + + The getElapsedMs function returns the + current elapsed query time (in ms) in Roxie. + + 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. + + For use in Roxie only. An error is + returned if you try to run on Thor or hThor. + + Example: + + IMPORT STD; +STD.System.Debug.Sleep (1054); // pause processing for 1054 milliseconds. +OUTPUT(STD.System.Log.getElapsedMs(), NAMED('Elapsed')); //returns total time elapsed + + diff --git a/docs/EN_US/ECLStandardLibraryReference/SLR-includer.xml b/docs/EN_US/ECLStandardLibraryReference/SLR-includer.xml index c62387b60cb..da6de3c274c 100644 --- a/docs/EN_US/ECLStandardLibraryReference/SLR-includer.xml +++ b/docs/EN_US/ECLStandardLibraryReference/SLR-includer.xml @@ -599,6 +599,9 @@ + +