Added generation time mesuring snippet.