Feature latency histogram

Issue #54 is addressed by this pull request. Not finished.