Add a simple units helper class

Signed-off-by: Simon Busch <morphis@gravedo.de>