arduino set 1k sample time and print it it

hello
i want to achieve with the arduino uno to collect 1k samples /s and print it after with the matlab i will process the data.

thank you in advance

my code is :
int start ;

void setup()
{
Serial.begin(115200) ;

start = millis() ;
Serial.println( start );

}

void loop()
{
int value;
for ( int i = 0 ; i < 1000 ; i++)
{
value = analogRead(0) ;
Serial.println(value);
}
Serial.print(millis() - start) ;
Serial.println(" msec (1000 calls)") ;
delay(10000);
}

That is a high sample rate for a normal Arduino Uno.
Do you want to read continuous 1k samples per second, or a burst ?

If the sample rate must be exactly 1000 samples per second, then a timer can be used. That requires register programming for the timer and the ADC.

If the sample rate is not so important, a delay can be added. The funtion analogRead() is about 120us, so 880us should be added.

void loop()
{
  int value = analogRead(A0);
  Serial.println(value);
  delayMicroseconds(850);          // perhaps the loop takes 30us (total should be 1ms)
}