simunits.h
inline sint64 seconds_from_meters_and_kmh(sint64 meters, sint64 kmh) {
	// The logic is:
	// ( (x meters / (1000 m/km) / (y km/hr) ) * 60 min/hr * 60 sec/min
	// so, multiply by 3600 and divide by 1000
	// To save space we reduce fractions: 36/10
	// But to round correctly, we need to add 1/2 of 10 = 5 before dividing
	return (meters * 36ll + 5ll) / (kmh * 10ll);
}
/**
 * INTERCONVERSION BETWEEN SPEED, TIME AND DISTANCE
 * There are too many different units used in simutrans-extended
 * But this handles... some of them.
 */
INTERCONVERSION BETWEEN SPEED, TIME AND DISTANCE
There are too many different units used in simutrans-extended
But this handles... some of them.
INTERCONVERSION BETWEEN SPEED TIME AND DISTANCE There are too many different units used in simutrans - extended But this handles ... some of them .
inline sint64 seconds_from_meters_and_kmh(sint64 meters, sint64 kmh) {
	return (meters * 36ll + 5ll) / (kmh * 10ll);
}
inline sint64 seconds_from_meters_and_kmh ( sint64 meters , sint64 kmh ) { return ( meters * 36ll + 5ll ) / ( kmh * 10ll ) ; }
INTERCONVERSION BETWEEN SPEED, TIME AND DISTANCE
 There are too many different units used in simutrans-extended
 But this handles... some of them.
INTERCONVERSION BETWEEN SPEED TIME AND DISTANCE There are too many different units used in simutrans - extended But this handles ... some of them .
// The logic is: // ( (x meters / (1000 m/km) / (y km/hr) ) * 60 min/hr * 60 sec/min // so, multiply by 3600 and divide by 1000 // To save space we reduce fractions: 36/10 // But to round correctly, we need to add 1/2 of 10 = 5 before dividing