I'm not sure whether I have locked the door.
whether 引导了一个宾语从句
They were glad of the examination being over.
being over 是examination 的宾语补足语
You'll save time not waiting for the elevator.
You will save time 是一个主谓宾的结构,not waiting for the elevator是现在分词短语作方式状语,说明”如何节省时间“