Skip to content

Instantly share code, notes, and snippets.

View InariAimu's full-sized avatar
🐟
Touching Fish...

Inari Aimu InariAimu

🐟
Touching Fish...
View GitHub Profile
@InariAimu
InariAimu / Program.cs
Last active August 17, 2022 05:12
Make cpu usage graph to display an I2C signal graph.
// make cpu usage graph to display an I2C signal graph.
// delay is for AMD Ryzen 9 3900X
// tested on AMD Ryzen 9 3900X
// up is SCL, down is SDA
using System.Diagnostics;
Process Proc = Process.GetCurrentProcess();
long AffinityMask = (long)Proc.ProcessorAffinity;
AffinityMask &= (1|1<<6);