how can i store the elapsed time to buffer or array
Elapsed time is a concept. The value returned by millis() or micros() is a scalar value.
You store scalar values in arrays the same way, regardless of what the scalar value is.
The real question is why do you want to store an array of elapsed times? How many elapsed times? When do you want to deal with the array? How?