}
static gboolean collect_data(struct State *state) {
- fprintf(stderr, "Voltage: %f, current: %f\n", fatof(state->voltage_filename),
- fatof(state->current_filename));
+ float now = g_get_monotonic_time() / 1e6;
+ fprintf(stderr, "%f: Voltage: %f, current: %f\n", now,
+ fatof(state->voltage_filename), fatof(state->current_filename));
return TRUE;
}