import time


def get_fps(start, frames):
    """
    Simple wrapper to computer frames per second.
    If 0 or 1 frames recorded, return 1.

    Arguments:
      start: float
        the time that the process started, in seconds.
      frames: int
        the number of frames that have been processed so far.

    Returns:
      fps: float
        The number of frames that have been processed per second.
    """
    if frames <= 1:
        return 1
    elapsed_time = time.time() - start
    return frames / elapsed_time