MCPcopy Create free account
hub / github.com/boostorg/build / running_time

Function running_time

src/engine/execnt.cpp:963–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961 */
962
963static double running_time( HANDLE const process )
964{
965 FILETIME creation;
966 FILETIME exit;
967 FILETIME kernel;
968 FILETIME user;
969 if ( GetProcessTimes( process, &creation, &exit, &kernel, &user ) )
970 {
971 /* Compute the elapsed time. */
972 FILETIME current;
973 GetSystemTimeAsFileTime( &current );
974 return filetime_to_seconds( add_FILETIME( current,
975 negate_FILETIME( creation ) ) );
976 }
977 return 0.0;
978}
979
980
981/*

Callers 1

try_kill_oneFunction · 0.85

Calls 3

filetime_to_secondsFunction · 0.85
add_FILETIMEFunction · 0.85
negate_FILETIMEFunction · 0.85

Tested by

no test coverage detected