Leo;
If you need that time to be accurate, you will need to use the counters of your board to do the timing operation.
The idea is to do finite pulse train generation with your counters, and use the output of the pulse train to be the Scan Clock of the Analog Input operation. By doing that, you can set up the pulse train to be of a specific frequency, and the number of pulses to be generated to be function of the frequency of the pulse train and the total time you want your analog input to run.
As you didn't mention what programming language you are using, I'm going to assume you are using Labview. If that is the case, you can find an example on how to do Finite Pulse train generation at Search Examples->I/O Interfaces->Data Acquisition->Counters->Controlling wi
th Counters.
You will need to change that example and include the analog input side of your task.
Hope this helps.
Filipe