ADTF Qt5
Loading...
Searching...
No Matches
adtf::javascript::scripting::cScriptClock Class Reference

#include <clock.h>

Inherits QObject.

Public Member Functions

Q_INVOKABLE qint64 getStreamTime ()
 

Detailed Description

Provides the global 'clock' object within scripts.

Member Function Documentation

◆ getStreamTime()

Q_INVOKABLE qint64 adtf::javascript::scripting::cScriptClock::getStreamTime ( )

Example Usage

var runner = filter.createRunner("print_stream_time")
runner.trigger.connect(function(timestamp)
{
console.info("trigger at " + timestamp + ", stream time is " + clock.getStreamTime())
})
Returns
The current stream time in nanoseconds.

The documentation for this class was generated from the following file: