XPMP2-Sample/XPMP2-Sample.cpp
inline float GetTimeFragment ()
{
    const float t = XPLMGetDataf(dr_time);
    return std::fmod(t, PLANE_CIRCLE_TIME_S) / PLANE_CIRCLE_TIME_S;
}
/// Returns a number between 0.0 and 1.0, increasing over the course of 10 seconds, then restarting

Returns a number between 0.0 and 1.0, increasing over the course of 10 seconds, then restarting
Returns a number between 0 . 0 and 1 . 0 increasing over the course of 10 seconds then restarting
inline float GetTimeFragment ()
{
    const float t = XPLMGetDataf(dr_time);
    return std::fmod(t, PLANE_CIRCLE_TIME_S) / PLANE_CIRCLE_TIME_S;
}
inline float GetTimeFragment ( ) { const float t = XPLMGetDataf ( dr_time ) ; return std :: fmod ( t , PLANE_CIRCLE_TIME_S ) / PLANE_CIRCLE_TIME_S ; }
Returns a number between 0.0 and 1.0, increasing over the course of 10 seconds, then restarting
Returns a number between 0 . 0 and 1 . 0 increasing over the course of 10 seconds then restarting