import time


def next_timestamp(boundary):
    """Returns the timestamp for the first moment after current time on the
    given boundary."""
    timestamp = time.time()
    return timestamp + boundary - timestamp % boundary