GPU temp

From Rock3r, 6 Years ago, written in C#, viewed 419 times.
URL https://paste.godclan.hu/view/eD5ndVoG Embed
Download Paste or View Raw
  1. Computer c = new Computer(){
  2.      GPUEnabled = true
  3. };
  4.  
  5. c.Open();
  6.  
  7. foreach( var hardware in c.Hardware) {
  8.      if( hardware.HardwareType == HardwareType.GpuAti ) {
  9.           hardware.Update();
  10.  
  11.           foreach( var sensor in hardware.Sensors ) {
  12.               if( sensor.SensorType == SensorType.Temperature )
  13.                    MessageBox.Show(sensor.Name  + ": " + sensor.Value.GetValueOrDefault());
  14.           }
  15.      }
  16. }
  17.  

Reply to "GPU temp"

Here you can reply to the paste above