Provides the global 'clock' object within scripts.
More...
Provides the global 'clock' object within scripts.
Definition at line 30 of file clock.h.
◆ 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.