Wow. I was like about a mile from the epicenter, and it seems like it only lasted for maybe seven, ten seconds.
The earthquake actually lasted less then one second. The ripple effect took up to 30 seconds. The closer you are to the epicenter, the less ripples there are.