Ah, you mean the period of an orbit.
If it's a circular orbit it's quite simple. You know the speed from the game, and you can easily get the radius of your trajectory (take the altitude ingame, and add the planet radius). The circumference is 2π × radius, and the orbital period is circumference /speed.
Now if you want the period for an elliptic trajectory, that's a bit more complicated. For this you will need the semi-major-axis (sma), which is (periapsis + apoapsis) / 2. Be careful, you have to take into account the planet radius. For example, if your periapsis is at 35 km above Earth's surface, you should use 350 km (35 + 315, 315 km being the Earth's radius) in your calculation.
From there, there are 2 ways.
The first method is experimental. You can launch a ship on a circular orbit which radius is the sma you calculated, and calculate his period with the method described above. Two orbits that have the same sma have the same period, they are synchronous, so you have directly the answer.
The second method requires more calculations. For this one you also need the gravitational parameter of the orbited body. It's usually called μ ("mu"), and you can calculate it from the planet data:
μ = g × (planet radius)^2
Then you just have to use the third Kepler's law:
Period^2 / sma^3 = 4 × π^2 / μ
If we take as an example a ship orbiting Earth (circular orbit) at 35 km of altitude. So the sma is 350 km, so 350000 meters. Always use the values in meters in the formulas.
For Earth, g=9.8 m/s^2, and radius = 315000 meters, so:
μ = 972.405 × 10^9 m^3/s^2
Then with the third Kepler law, I can deduce the orbital period:
Period = 1126 seconds, so 18 minutes and 46 seconds.