Measuring of time was improved

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