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

Function running_time

v2/engine/execnt.c:863–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861 */
862
863static double running_time( HANDLE const process )
864{
865 FILETIME creation;
866 FILETIME exit;
867 FILETIME kernel;
868 FILETIME user;
869 if ( GetProcessTimes( process, &creation, &exit, &kernel, &user ) )
870 {
871 /* Compute the elapsed time. */
872 FILETIME current;
873 GetSystemTimeAsFileTime( &current );
874 return filetime_to_seconds( add_FILETIME( current,
875 negate_FILETIME( creation ) ) );
876 }
877 return 0.0;
878}
879
880
881/*

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