MCPcopy Create free account
hub / github.com/catboost/catboost / FiletimeToDuration

Function FiletimeToDuration

util/system/rusage.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24#ifdef _win_
25TDuration FiletimeToDuration(const FILETIME& ft) {
26 union {
27 ui64 ft_scalar;
28 FILETIME ft_struct;
29 } nt_time;
30 nt_time.ft_struct = ft;
31 return TDuration::MicroSeconds(nt_time.ft_scalar / 10);
32}
33#endif
34
35size_t TRusage::GetCurrentRSS() {

Callers 1

FillMethod · 0.85

Calls 1

MicroSecondsFunction · 0.85

Tested by

no test coverage detected