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

Function TimeDifference

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

Source from the content-addressed store, hash-verified

94 }
95
96 int TimeDifference(timeval_t newTime, timeval_t oldTime){
97 long seconds = newTime.seconds - oldTime.seconds;
98 int milliseconds = newTime.milliseconds - oldTime.milliseconds;
99
100 return seconds * 1000 + milliseconds;
101 }
102
103 void SleepCurrentThread(timeval_t& time){
104 long ticks = time.seconds * frequency + MsToTicks(time.milliseconds);

Callers 3

SysExecFunction · 0.85
SysPollFunction · 0.85
ReadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected