https://en.wikipedia.org/wiki/Chemical_oxygen_generator
15-22minutes, and not if they're already unconscious. You can take small compressed gas cylinders on board planes in your hand baggage, so you could easily have your own discreet O2 supply that last long enough until everyone else has fallen unconscious, move to a single overheard mask and wait 15minutes by which time no-one else is going to come round again.
At which point you direct the plane to low level so you don't have to rely on oxygen masks. The guy on the greek flight that crashed due to decompression a few years back effectively did this - everyone put their masks on but the pilots didn't realise there was a decompression so they didn't descend. The air steward then hopped between his bottle and unused seats and was seen fully concious prior to the plane crashing by the Greek airforce when it ran out of fuel. They reckon his history of being a diver as well meant he could control his breathing and oxygen use better than anyone else. By the time he would have realised what was going on it was too late to save anyone else.
https://en.wikipedia.org/wiki/Helios_Airways_Flight_522
You don't need to quickly de compress it, just decompress it without anyone noticing. It would only require you to over ride anything that would highlight that the plane was decompressing and would automatically trigger the other passengers oxygen masks. Again, wouldn't be surprised if it's all electronically controlled by the flight computers on a modern jet.
I personally think getting oxygen is fairly straight forward. The hard part would be taking control of the plane, if it's at all possible.