i am writing a simple program, and for that i want to output the current cpu usage, however with a stander "for" or "while" loop, it prints it every time on a new line, let me show what i mean:
output should be:
Current cpu usage: (usage)
where the usage refreshes every second
now, i want to refresh it every second, but as i mentioned, with a for or while loop that wil just print it out to a new line every time, like this:
Current cpu usage: (usage)
(usage)
(usage)
(usage)
(usage)
so, how do i just refresh the "usage"?
btw, i'm pretty familiar with c#, so you don't have to go in depth :)
Thanks