The Multi-Fold Out Ruler from Midori is a handy addition to your pencil case that can measure up to 30 cm when opened.
There are holes every 10 mm, which is convenient for marking.
It clicks every 15 degrees so you can measure the angle.
Also available in a compact, 16cm version.