"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/times.cpp" between
bed-3.0.0.src.tar.xz and bed-3.0.1.src.tar.xz

About: bed is an adjustable data format binary editor.

times.cpp  (bed-3.0.0.src.tar.xz):times.cpp  (bed-3.0.1.src.tar.xz)
skipping to change at line 29 skipping to change at line 29
#endif #endif
extern LARGE_INTEGER FrequencyPerformanceQuery; extern LARGE_INTEGER FrequencyPerformanceQuery;
LARGE_INTEGER FrequencyPerformanceQuery; LARGE_INTEGER FrequencyPerformanceQuery;
void getstarttime(void) { void getstarttime(void) {
QueryPerformanceFrequency(&FrequencyPerformanceQuery); QueryPerformanceFrequency(&FrequencyPerformanceQuery);
if(!QueryProcessCycleTime( GetCurrentProcess(), &startuptime)) { if(!QueryProcessCycleTime( GetCurrentProcess(), &startuptime)) {
startuptime=8000002; startuptime=8000002;
} }
#else #else
void getstarttime(void) { void getstarttime(void) {
#ifdef HAVE_CLOCK_GETTIME
struct timespec spec; struct timespec spec;
if(!clock_gettime( CLOCK_PROCESS_CPUTIME_ID ,&spec)) { /*correlates maybe a little bit with how much time everything takes */ if(!clock_gettime( CLOCK_PROCESS_CPUTIME_ID ,&spec)) { /*correlates maybe a little bit with how much time everything takes */
startuptime= spec.tv_sec*1000000000ULL+spec.tv_nsec; startuptime= spec.tv_sec*1000000000ULL+spec.tv_nsec;
if(startuptime==0) if(startuptime==0)
startuptime=8000001; startuptime=8000001;
} }
#else
startuptime=8000001;
#endif
#endif #endif
showmarkswhole=0x130000000000/startuptime; showmarkswhole=0x130000000000/startuptime;
} }
/* /*
QueryProcessCycleTime( QueryProcessCycleTime(
_In_ HANDLE ProcessHandle, _In_ HANDLE ProcessHandle,
_Out_ PULONG64 CycleTime _Out_ PULONG64 CycleTime
); );
 End of changes. 2 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)