Convert an fps value to the value needed to be written to memory - CSharp System

CSharp examples for System:Double

Description

Convert an fps value to the value needed to be written to memory

Demo Code


using System;/* ww w.j  ava  2s. com*/

public class Main{
        /// <summary>
        /// Convert an fps value to the value needed to be written to memory
        /// </summary>
        /// <param name="fps"></param>
        /// <returns></returns>
        public static double ConvertFPS(double fps)
        {
            return Math.Round((1000 / fps), 1);
        }
}

Related Tutorials