The duration of a master's degree in computer science varies depending on the country in which you choose to pursue it. If you've opted for a U.S. university, it typically spans a period of 1 to 2 years when undertaken as a full-time commitment.