On 30 Nov 2005 14:04:10 -0800,
wrote, quoted or
indirectly quoted someone who said :
> I have to get max value of value1 between two timestamps and the the
>avg value of value2 between another two timestamps. What would be an
>efficient way to do this in terms of memory and processing time?
you process the file sequentially, convert your timestamps to longs,
subtract and keep the longest value you find in variable called
longest.
if (diff > longest ) longest = diff;
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.