import time


def print_time(func):
  """
  Decorator to print execution time of function.
  """
  def _print_time(*args, **keyword):
    func_name = func.__name__
    print(f'Begin {func_name}()')
    begin_at = time.time()
    result = func(*args, **keyword)
    measured_time = time.time() - begin_at
    print(f'End {func_name}() {measured_time} second.')
    return result
  return _print_time