[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 authored at 2024-08-09 00:30:41 石头 committed at 2024-08-10 14:22:24
724.00 B
X
using System;

namespace NewLife.Data;

/// <summary>
/// 时序点,用于时序数据计算
/// </summary>
public struct TimePoint
{
    /// <summary>
    /// 时间
    /// </summary>
    public Int64 Time;

    /// <summary>
    /// 数值
    /// </summary>
    public Double Value;

    /// <summary>
    /// 已重载
    /// </summary>
    /// <returns></returns>
    public override String ToString() => $"({Time}, {Value})";
}

///// <summary>
///// 时序点,用于时序数据计算
///// </summary>
//public struct LongTimePoint
//{
//    /// <summary>
//    /// 时间
//    /// </summary>
//    public Int64 Time;

//    /// <summary>
//    /// 数值
//    /// </summary>
//    public Double Value;
//}