Prototype to support record-level compression

This will be enough for tests with compression.
Hack to calculate user and system time used for processes