cornsnake.util_wait

Function for waiting for a specified number of seconds. The wait_seconds function pauses the program execution for the specified number of seconds.

Documentation

 1"""
 2Function for waiting for a specified number of seconds. The `wait_seconds` function pauses the program execution for the specified number of seconds.
 3
 4[Documentation](http://docs.mrseanryan.cornsnake.s3-website-eu-west-1.amazonaws.com/cornsnake/util_wait.html)
 5"""
 6
 7import time
 8
 9
10def wait_seconds(seconds):
11    """
12    Function to pause program execution for a specified number of seconds.
13
14    Args:
15    seconds (int): The number of seconds to wait.
16
17    Returns:
18    None
19    """
20    print(f"    waiting {seconds}s...")
21    time.sleep(seconds)
def wait_seconds(seconds):
11def wait_seconds(seconds):
12    """
13    Function to pause program execution for a specified number of seconds.
14
15    Args:
16    seconds (int): The number of seconds to wait.
17
18    Returns:
19    None
20    """
21    print(f"    waiting {seconds}s...")
22    time.sleep(seconds)

Function to pause program execution for a specified number of seconds.

Args: seconds (int): The number of seconds to wait.

Returns: None