y = timeevent(x);
y becomes true when time is equal to x. This functions forces the integration algorithm to do a calculation when time y becomes true. This is a time event function.
The example code below forces the integration algorithm, to do a calculation at the start of the step:
x = step(start_time);
y = timeevent(start_time);
y must be a boolean, x must be an expression yielding a scalar.