Time-dependent failure in poly(methyl methacrylate) and polyethylene