I would create a database (MS Access or SQL) and write the PINGs including timestamp into it. Then you can query historic data as you like by using standard SQL querys.
_________________________
There are two types of vessels, submarines and targets.