58 lines
1.2 KiB
C#
58 lines
1.2 KiB
C#
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Specialized;
|
|
using System.ComponentModel;
|
|
using System.Diagnostics;
|
|
|
|
namespace Microsoft.PowerShell.Commands.GetCounter
|
|
{
|
|
public class CounterFileInfo
|
|
{
|
|
internal CounterFileInfo(DateTime oldestRecord,
|
|
DateTime newestRecord,
|
|
UInt32 sampleCount)
|
|
{
|
|
_oldestRecord = oldestRecord;
|
|
_newestRecord = newestRecord;
|
|
_sampleCount = sampleCount;
|
|
}
|
|
|
|
internal CounterFileInfo() { }
|
|
|
|
public DateTime OldestRecord
|
|
{
|
|
get
|
|
{
|
|
return _oldestRecord;
|
|
}
|
|
}
|
|
|
|
private DateTime _oldestRecord = DateTime.MinValue;
|
|
|
|
public DateTime NewestRecord
|
|
{
|
|
get
|
|
{
|
|
return _newestRecord;
|
|
}
|
|
}
|
|
|
|
private DateTime _newestRecord = DateTime.MaxValue;
|
|
|
|
public UInt32 SampleCount
|
|
{
|
|
get
|
|
{
|
|
return _sampleCount;
|
|
}
|
|
}
|
|
|
|
private UInt32 _sampleCount = 0;
|
|
}
|
|
}
|
|
|