import time


def within_acceptable_skew(timestamp: int, skew_window_secs: int):
    """
    Helper fuction that determines whether timestamp (in nanoseconds) is within +/- skew_window_secs
    """
    min_timestamp = time.time_ns() - (skew_window_secs * 1e9)
    max_timestamp = time.time_ns() + (skew_window_secs * 1e9)
    if min_timestamp <= timestamp <= max_timestamp:
        return True
    else:
        return False