Python | sys.getswitchinterval() method Last Updated : 13 Aug, 2019 Comments Improve Suggest changes Like Article Like Report This sys module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It provides information about constants, functions and methods of python interpreter. It can be used for manipulating Python runtime environment. sys.getswitchinterval() method is used to get the interpreter’s thread switch interval (in seconds). This floating-point value determines the ideal duration of the timeslices allocated to concurrently running Python threads. Syntax: sys.getswitchinterval() Parameter: This method accepts no parameter. Return Value: It returns the interpreter’s thread switch interval. Example #1 : Python3 # Python program to explain sys.getswitchinterval() method # Importing sys module import sys # Using sys.getswitchinterval() method # to find the interpreter’s thread switch interval interval = sys.getswitchinterval() # Print result print(interval) Output: 0.005 Comment More infoAdvertise with us Next Article Python | sys.getswitchinterval() method R Rajnis09 Follow Improve Article Tags : Python python-modules Practice Tags : python Similar Reads Python | os.sched_rr_get_interval() method OS module in Python provides functions for interacting with the operating system. OS comes under Pythonâs standard utility modules. This module provides a portable way of using operating system dependent functionality.OS module contains some methods which provides an interface to the scheduler and u 2 min read Python | time.clock_gettime() method time.clock_gettime() method of Time module is used to get the time of the specified clock clk_id. Basically, clk_id is a integer value which represents the id of the clock. Following are the constants available on UNIX platforms that can be used as value of clk_id parameter: clk_id clk_id constant M 3 min read Python | time.clock_gettime_ns() method Time module in Python provides various time-related functions. This module comes under Pythonâs standard utility modules. time.clock_gettime_ns() method of Time module is used to get the time (in nanoseconds) of the specified clock clk_id. Basically, clk_id is a integer value which represents the id 3 min read Python | time.clock_getres() method Time module in Python provides various time-related functions. This module comes under Pythonâs standard utility modules. time.clock_getres() method of Time module is used to get the resolution or precision of the specified clock clk_id. Basically, clk_id is a integer value which represents the id o 3 min read Python | sys.setswitchinterval() method This sys module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. It provides information about constants, functions and methods of python interpreter. It can be used for manipulating Python runtime environment. sys. 2 min read Like