-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
161 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,41 @@ | ||
using System; | ||
|
||
namespace NewLife.Data | ||
namespace NewLife.Data; | ||
|
||
/// <summary> | ||
/// 时序点,用于时序数据计算 | ||
/// </summary> | ||
public struct TimePoint | ||
{ | ||
/// <summary> | ||
/// 时序点,用于时序数据计算 | ||
/// 时间 | ||
/// </summary> | ||
public struct TimePoint | ||
{ | ||
/// <summary> | ||
/// 时间 | ||
/// </summary> | ||
public Int64 Time; | ||
public Int64 Time; | ||
|
||
/// <summary> | ||
/// 数值 | ||
/// </summary> | ||
public Double Value; | ||
/// <summary> | ||
/// 数值 | ||
/// </summary> | ||
public Double Value; | ||
|
||
/// <summary> | ||
/// 已重载 | ||
/// </summary> | ||
/// <returns></returns> | ||
public override String ToString() => $"({Time}, {Value})"; | ||
} | ||
/// <summary> | ||
/// 已重载 | ||
/// </summary> | ||
/// <returns></returns> | ||
public override String ToString() => $"({Time}, {Value})"; | ||
} | ||
|
||
///// <summary> | ||
///// 时序点,用于时序数据计算 | ||
///// </summary> | ||
//public struct LongTimePoint | ||
//{ | ||
// /// <summary> | ||
// /// 时间 | ||
// /// </summary> | ||
// public Int64 Time; | ||
///// <summary> | ||
///// 时序点,用于时序数据计算 | ||
///// </summary> | ||
//public struct LongTimePoint | ||
//{ | ||
// /// <summary> | ||
// /// 时间 | ||
// /// </summary> | ||
// public Int64 Time; | ||
|
||
// /// <summary> | ||
// /// 数值 | ||
// /// </summary> | ||
// public Double Value; | ||
//} | ||
} | ||
// /// <summary> | ||
// /// 数值 | ||
// /// </summary> | ||
// public Double Value; | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters