Robin2, if I use micros(), it takes 223 ms to finish writing an array, compared to 204 ms with millis. Don't know why though.
Possible solution:
Instead of defining a new variable ttimee, I did it like this: When printing out an array, it says it prints it out every ms, so I guess it's all good?
if (millis() >= n) {
voltage = analogRead(A0);
table[n] = voltage;
timee[n] = millis();
n++;
}