in reply to hash array
I end up using multi-dimension hash array to keep/calculate the time stamp. It works great and code is much readable!
Cheers,