ADTF  3.18.2
cScriptClock

Provides the global 'clock' object within scripts. More...

Inheritance diagram for cScriptClock:
[legend]

Public Member Functions

Q_INVOKABLE qint64 getStreamTime ()
 

Detailed Description

Provides the global 'clock' object within scripts.

Definition at line 30 of file clock.h.

Member Function Documentation

◆ getStreamTime()

Q_INVOKABLE qint64 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.