I'm trying to develop my own simple uptime command (used to show how long the system has been running) like program where I'm gonna use it for our university's OS, (consider the OS already has all the necessary C libraries needed to make system utilities)
Could someone give me a hint on what to do, is there a simple time library in C I need to include to use the right functions? I've already meddled with linux built in proc/uptime code and still trying to grasp how it works since it makes a lot of calls to other files located at proc