added runtime measurement