MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / GetSystemUptimeStruct

Function GetSystemUptimeStruct

Kernel/src/arch/x86_64/timer.cpp:89–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 timeval_t GetSystemUptimeStruct(){
90 timeval_t tval;
91 tval.seconds = uptime;
92 tval.milliseconds = ticks * 1000 / frequency;
93 return tval;
94 }
95
96 int TimeDifference(timeval_t newTime, timeval_t oldTime){
97 long seconds = newTime.seconds - oldTime.seconds;

Callers 5

SysExecFunction · 0.85
SysPollFunction · 0.85
SysSelectFunction · 0.85
ReadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected