mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-12 19:25:00 +00:00
Splitting ProcessorUtils into SimplSharp and NetStandard portions
This commit is contained in:
117
ICD.Common.Utils/ProcessorUtils.Standard.cs
Normal file
117
ICD.Common.Utils/ProcessorUtils.Standard.cs
Normal file
@@ -0,0 +1,117 @@
|
||||
#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()
|
||||
{
|
||||
// TODO
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reboots the processor.
|
||||
/// </summary>
|
||||
[PublicAPI]
|
||||
public static void Reboot()
|
||||
{
|
||||
// TODO
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user