agent/browser/ie/pagetest/PagetestReporting.cpp
/*-----------------------------------------------------------------------------
  Convert a System Time into a "seconds since X" format suitable for math
-----------------------------------------------------------------------------*/
Convert a System Time into a "seconds since X" format suitable for math
Convert a System Time into a " seconds since X " format suitable for math
__int64 SystemTimeToSeconds(SYSTEMTIME& system_time) {
  __int64 seconds = 0;
  FILETIME file_time;
  if (SystemTimeToFileTime(&system_time, &file_time)) {
    LARGE_INTEGER convert;
    convert.HighPart = file_time.dwHighDateTime;
    convert.LowPart = file_time.dwLowDateTime;
    seconds = convert.QuadPart / 10000000;
  }
  return seconds;
}
__int64 SystemTimeToSeconds ( SYSTEMTIME & system_time ) { __int64 seconds = 0 ; FILETIME file_time ; if ( SystemTimeToFileTime ( & system_time , & file_time ) ) { LARGE_INTEGER convert ; convert . HighPart = file_time . dwHighDateTime ; convert . LowPart = file_time . dwLowDateTime ; seconds = convert . QuadPart / 10000000 ; } return seconds ; }
Convert a System Time into a "seconds since X" format suitable for math
Convert a System Time into a " seconds since X " format suitable for math