apps-script-utils 2.1.1 Help

TaskInfo

interface TaskInfo

The name the task was started with — empty when none was given — and how long it ran, in milliseconds and in seconds. The two durations are the same measurement, offered in both units so that neither the log line nor the arithmetic has to convert.

Examples

Shape

const watch = new StopWatch(); watch.start("fetch"); watch.stop(); watch.getLastTaskInfo(); // { taskName: "fetch", timeMillis: …, timeSeconds: … }

See also

Source

src/time/StopWatch.ts

23 September 2026

This documentation was generated with AI (Claude) from the library's source code.