Way to add a timer?

Hello, I’m new to the forum.

I’ve been using OmniOutliner for over 10 years to create outlines for speeches. One thing that would be nice is to have an integrated timer/stopwatch to help monitor my timing. Currently I use a 3rd party app that creates a pop-out video clock that can show me the elapsed time. Is there any way to do this with scripting inside OmniOutliner?

Thanks!
Nick

Hi @comfortablynick, welcome to the forums.

I haven’t experimented with this, but I know OO has a Timer class defined. You could experiment with it, perhaps.

Timer

Class Functions

function once(interval: Number, action: Function(‍timer: Timer‍)) → Timer

Makes a new Timer that will fire once, after the specified interval (in seconds from the current time). When the Timer fires, the passed in Function is called, passing the Timer as its argument.

function repeating(interval: Number, action: Function(‍timer: Timer‍)) → Timer

Makes a new Timer that will fire repeatedly with the specified interval (in seconds, with the first invocation happening that interval after the current time). When the Timer fires, the passed in Function is called, passing the Timer as its argument.