Uptime

This is a discussion on Uptime within the C Programming forums, part of the General Programming Boards category; My friend is writing an OS in C. He is doing pretty well and I want him to add an ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    25

    Uptime

    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.

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    25
    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.
    Thanks

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    175
    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...

  4. #4
    Registered User
    Join Date
    Jan 2003
    Posts
    25
    thats the current time on a 24 hour clock i believe/
    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Best Uptime
    By ILoveVectors in forum A Brief History of Cprogramming.com
    Replies: 25
    Last Post: 07-29-2005, 09:17 AM
  2. calculating program uptime
    By Rare177 in forum Windows Programming
    Replies: 1
    Last Post: 07-15-2004, 03:33 PM
  3. System Uptime
    By kolt554 in forum Windows Programming
    Replies: 6
    Last Post: 11-13-2002, 06:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21