Log Analysis with AWK with Time difference

I would like to write a shell script that calculated the time difference bettween the log entries. If the time difference is higher as 200 sec. print the complette lines out.
My Problem is, i am unable to jump in the next line and calculate the time difference.

Thank you for your Help.

My log entries in a file:

2011-09-13 16:27:59,334 DEBUG [http-10.99.8.212-10000-1:] [domin.a.xy.ade] Start ALG: 0ms
2011-09-13 16:27:59,334 INFO  [http-10.99.8.212-10000-1:] [domin.a.xy.ade2123] Used Key156161;

Hi fabian3010,

Those entries shouldn't be printed because difference between them is 0 seconds, am I right?

Regards,
Birei

I would suggest using perl for date and time arithmetic because doing it in the shell can be very cumbersome and prone to errors.

@berei, thats really right. e.x. in this case is the time difference to high print the two lines on a console.

2011-09-13 16:27:59,334 DEBUG [http-10.99.8.212-10000-1:] [domin.a.xy.ade] Start ALG: 0ms
2011-09-13 16:28:01,334 INFO  [http-10.99.8.212-10000-1:] [domin.a.xy.ade2123] Used Key156161;

@shamrock do you have an example for me ? in this case ?

But, how many entries are there in the log file? Only two? In case of 11 entries, how should be the output?

I think you sould provide a bigger example to be sure.

Regards,
Birei

Provide a good sample of the input and the expected output...