Measure time was modified, type tLibState was added

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