how to create buffer for elapsed time ??

ishtiaq:
i want to to store elapsed time value into buffer and when communication is complete then measure it...

unsigned int CurrentTime = micros();

sketch
unsigned int CurrentTime = micros();

unsigned int ElapsedTime = CurrentTime - StartTime;
 
Serial.print("ElapsedTime");
Serial.println(ElapsedTime);



can any one help how to do it

Just create an array for the times:

unsigned long capturedTime[50];

Using the array is very basic programming, no need to explain that here. Look up "array indexing".