Felt like it lasted more than a few seconds ...
Edit: according to cbs5.com (KPIX)
An earthquake of undetermined magnitude has just been felt across much of the San Francisco Bay Area... it was centered 5 miles NNE from Alum Rock, 6 miles from Milpitas, 9 miles from San Jose City Hall.