system-time

xod/core/system-time

Outputs time spent since the program start
system-time
@/system-time
Outputs time spent since the program start
UPDpulse
Triggers new time read
system-time
UPD
TIME
TIMEnumber
The last time read in seconds

C++ implementation

#pragma XOD dirtieness disable

node {
    void evaluate(Context ctx) {
        emitValue<output_TIME>(ctx, millis() / 1000.f);
    }
}

Tabular tests

__time(ms)UPDTIME
0pulse0
100pulse0.1
1000pulse1
3000pulse3
600pulse0.6
1000no-pulse0.6
1000pulse1