Use time instead of datetime for measurements

Signed-off-by: Philip Luyckx <philip.luyckx@gmail.com>