The queryEndTime() operator returns the end time of the search time range in milliseconds. You can use it in combination with queryStartTime() to establish times and ranges for your non-continuous queries.
queryEndTime() as <field>
- An alias is required.
To get a duration of your query:
| (queryEndTime() - queryStartTime()) as duration
To list start time, end time, and duration:
| queryStartTime() as starttime
| queryEndTime() as endtime
| (endtime - starttime) as duration