time(second)

koadrobot/progress/time(second)

No description
time(second)
@/time(second)
UPDpulse
Triggers new time read
time(second)
Tsec
UPD
Tsecnumber
The last time read in milli seconds
To use the node in your project you should have the koadrobot/progress library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

#pragma XOD dirtieness disable

struct State {
};

{{ GENERATED_CODE }}

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

Tabular tests

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