35 lines
822 B
C#
35 lines
822 B
C#
|
// /**
|
|||
|
// * File: PerfValue.cs
|
|||
|
// * Author: haraldwolff
|
|||
|
// *
|
|||
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
|||
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
|||
|
// *
|
|||
|
// *
|
|||
|
// **/
|
|||
|
using System;
|
|||
|
namespace ln.perfdb
|
|||
|
{
|
|||
|
public struct PerfValue
|
|||
|
{
|
|||
|
public long TimeStamp;
|
|||
|
public double Value;
|
|||
|
|
|||
|
public PerfValue(long timeStamp, double value)
|
|||
|
{
|
|||
|
TimeStamp = timeStamp;
|
|||
|
Value = value;
|
|||
|
}
|
|||
|
public PerfValue(double value)
|
|||
|
{
|
|||
|
TimeStamp = DateTimeOffset.Now.ToUnixTimeSeconds();
|
|||
|
Value = value;
|
|||
|
}
|
|||
|
|
|||
|
public override string ToString()
|
|||
|
{
|
|||
|
return String.Format("Timestamp: {0,12} {1}",TimeStamp,Value);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|