OpenWGA 7.9 - TMLScript reference

Console
Method :

time(timerName)

On object Console
Usage Creates and starts a timer to take the time of a TMLScript operation
Description

This is a utility to determine how much time a certain TMLScript operation takes. Call this method before executing the operation to start the timer. Then call timeEnd() after the operation to have it put out the elapsed time.

This method puts out a log message: <timerName> timer started

Parameters

timeName (String):

Some custom timer name.

Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events