You can remember the meaning of 当时 with this easy mnemonic:
Put down your pens at once, you don't want to be (当) mistook for cheating after the test time (时) is up do you?
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.