My friend is writing an OS in C. He is doing pretty well and I want him to add an uptime command but he said I need to write the code because he wants me to learn C, but I cant becuse its too hard for me. Can someone please tell me how to do this? Thanks.
Ok, I know how to get the system time... It comes out as a number like: 34482384
Now math just needs to be done.. get the current time when "uptime" is processed and subtract it from the number amove then cnvert, anyone know how? Thanks.
You may need to understand the resolution of CPU tick is...
>>It comes out as a number like: 34482384
And what this number is, explain...
thats the current time on a 24 hour clock i believe/