mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
60 lines
1.1 KiB
C#
60 lines
1.1 KiB
C#
//
|
|||
|
|
// Copyright (c) 2008 Microsoft Corporation. All rights reserved.
|
||
|
|
//
|
||
|
|
|
||
|
|
using System;
|
||
|
|
using System.Collections;
|
||
|
|
using System.Collections.Specialized;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Diagnostics;
|
||
|
|
using System.ComponentModel;
|
||
|
|
|
||
|
|
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;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|