Plug in the numbers.
This is Kepler's Third Law.
You *could* do the math, but I find this site much easier:
http://www.1728.com/kepler3a.htm
Click thet you want to solve for "time."
Plug in for:
Mass = 1 solar mass
Distance = 1 AU
Hit "calculate"
You should come up with a number very close to one year.
Now, do everything the same, but select 2 solar masses.
Earth needs to orbit a little bit faster to maintain a stable orbit at that distance, huh?