Files
ICD.Common.Utils/ICD.Common.Utils/ProcessorUtils.Standard.cs
2018-06-07 12:29:07 -04:00

116 lines
1.8 KiB
C#

#if !SIMPLSHARP
using System;
using ICD.Common.Properties;
namespace ICD.Common.Utils
{
public static partial class ProcessorUtils
{
#region Properties
/// <summary>
/// Gets the model name of the processor.
/// </summary>
[PublicAPI]
public static string ModelName { get { return Environment.MachineName; } }
/// <summary>
/// Gets the processor firmware version.
/// </summary>
[PublicAPI]
public static Version ModelVersion
{
get
{
// TODO
return new Version("1.0.0.0");
}
}
/// <summary>
/// Gets the ram usage in the range 0 - 1.
/// </summary>
public static float RamUsagePercent
{
get
{
// TODO
return 0.0f;
}
}
/// <summary>
/// Gets the total number of bytes of physical memory.
/// </summary>
public static ulong RamTotalBytes
{
get
{
// TODO
return 0;
}
}
/// <summary>
/// Gets the total number of bytes of physical memory being used by the control system.
/// </summary>
public static ulong RamUsedBytes
{
get
{
// TODO
return 0;
}
}
/// <summary>
/// Gets the total number of bytes of physical memory not being used by the control system.
/// </summary>
public static ulong RamBytesFree
{
get
{
// TODO
return 0;
}
}
/// <summary>
/// Gets the total number of bytes that can be reclaimed.
/// </summary>
public static ulong RamBytesReclaimable
{
get
{
// TODO
return 0;
}
}
#endregion
#region Methods
/// <summary>
/// Restarts this program.
/// </summary>
[PublicAPI]
public static void RestartProgram()
{
throw new NotSupportedException();
}
/// <summary>
/// Reboots the processor.
/// </summary>
[PublicAPI]
public static void Reboot()
{
throw new NotSupportedException();
}
#endregion
}
}
#endif