added time measure to locked queue, FIXME: not working