private uint[] ObtainClocks() { if (NvApi.GetAllClocks == null) { return(null); } var allClocks = new NvClocks { Version = NvApi.GpuClocksVer, Clock = new uint[NvApi.MaxClocksPerGpu] }; return(NvApi.GetAllClocks(Gpu.AdapterHandle, ref allClocks) == NvStatus.Ok ? allClocks.Clock : null); }