MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / TimeDiff

Function TimeDiff

rEFIt_UEFI/entry_scan/common.cpp:498–501  ·  view source on GitHub ↗

input - tsc output - milliseconds the caller is responsible for t1 > t0

Source from the content-addressed store, hash-verified

496// output - milliseconds
497// the caller is responsible for t1 > t0
498UINT64 TimeDiff(UINT64 t0, UINT64 t1)
499{
500 return DivU64x64Remainder((t1 - t0), DivU64x32(gCPUStructure.TSCFrequency, 1000), 0);
501}
502
503

Callers 2

UpdateFilmMethod · 0.85
UpdatePointerMethod · 0.85

Calls 2

DivU64x64RemainderFunction · 0.85
DivU64x32Function · 0.85

Tested by

no test coverage detected