Probably a usable amount of time I guess - I expect it probably takes 2 or 3 seconds to fully comprehend, then that leaves 5 seconds or so to take cover.
From someone living in UK where earthquakes are rare and tiny, what sort of cover can you take in less than 10 seconds? Go jump in a steel bath tub or something? Stand in a doorway? (Is that a thing? Does it depend on wood Vs brick Vs concrete?)