Added debugging messages + measuring of time

Signed-off-by: Bleska <blecha.jiri@gmail.com>