def uptime(sender, process, data):
    """The time in seconds Supervisor reports the process has been running

    - ``process:{name}:uptime``
    """
    sender.riemann.event(service='process:{name}:uptime'.format(**data),
        metric_f=data['stop' if process is None else 'now'] - data['start'])
