<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/temporal.getLsqtAutomationLag.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>temporal.getLsqtAutomationLag</api:function-name><api:suggest>temporal.getlsqtautomationlag</api:suggest><api:suggest>temporal</api:suggest><api:suggest>getlsqtautomationlag</api:suggest><api:function-link mode="xquery" fullname="temporal:get-lsqt-automation-lag">/apidoc/8.0/temporal:get-lsqt-automation-lag.xml</api:function-link><api:function mode="javascript" name="getLsqtAutomationLag" type="builtin" lib="temporal" category="Temporal" hidden="false" bucket="MarkLogic Built-In Functions" prefix="temporal" namespace="http://marklogic.com/xdmp/temporal" fullname="temporal.getLsqtAutomationLag"><api:summary>
   When the LSQT is advanced automatically, this function returns how far behind 
   (in milliseconds) the Last Stable Query Time (LSQT) is from latest system time.
  <p xmlns="http://www.w3.org/1999/xhtml">
  For details on how to use LSQT, see  
 <a href="/guide/temporal/managing#id_75536">Last Stable Query Time (LSQT) and Application-controlled System Time</a> in the <em>Temporal Developer's Guide</em>  
  </p>   
  </api:summary><api:params><api:param name="temporal-collection" type="xs:string"><api:param-description>
      The name of temporal collection.
    </api:param-description><api:param-name>temporal-collection</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>Number</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var temporal = require("/MarkLogic/temporal.xqy");
temporal.getLsqtAutomationLag("temporalCollection");
=&gt;
1000

</pre></api:example></api:function></api:function-page>