update_histogram with timing of a function

Ah, it's a pity. Ok, good to know.