Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

WKFUtils.C File Reference

Cross-platform APIs for high-precision timers and status messaging. More...

#include "WKFUtils.h"
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>

Go to the source code of this file.

Compounds

struct  wkf_timer

Functions

void wkf_timer_start (wkf_timerhandle v)
 start a timer (clears timer). More...

void wkf_timer_stop (wkf_timerhandle v)
 stop a timer. More...

double wkf_timer_time (wkf_timerhandle v)
 report elapsed time in seconds. More...

double wkf_timer_start_time (wkf_timerhandle v)
 report wall starting time. More...

double wkf_timer_stop_time (wkf_timerhandle v)
 report wall stopping time. More...

wkf_timerhandle wkf_timer_create (void)
 create a timer (clears timer). More...

void wkf_timer_destroy (wkf_timerhandle v)
 create a timer (clears timer). More...

double wkf_timer_timenow (wkf_timerhandle v)
 report elapsed time in seconds. More...

wkfmsgtimerwkf_msg_timer_create (double updatetime)
 initialize periodic status message timer. More...

int wkf_msg_timer_timeout (wkfmsgtimer *mt)
 return true if it's time to print a status update message. More...

void wkf_msg_timer_destroy (wkfmsgtimer *mt)
 destroy message timer. More...


Detailed Description

Cross-platform APIs for high-precision timers and status messaging.

Revision:
1.2
Date:
2020/02/26 06:23:21

Author:
John E. Stone - john.stone@gmail.com \copyright This trivial code is made available under the "new" 3-clause BSD license, and/or any of the GPL licenses you prefer. Feel free to use the code and modify as you see fit.

Definition in file WKFUtils.C.


Function Documentation

wkfmsgtimer* wkf_msg_timer_create double    updatetime
 

initialize periodic status message timer.

Definition at line 191 of file WKFUtils.C.

References NULL, wkfmsgtimer::timer, wkfmsgtimer::updatetime, wkf_timer_create, and wkf_timer_start.

void wkf_msg_timer_destroy wkfmsgtimer   mt
 

destroy message timer.

Definition at line 217 of file WKFUtils.C.

References wkfmsgtimer::timer, and wkf_timer_destroy.

int wkf_msg_timer_timeout wkfmsgtimer   mt
 

return true if it's time to print a status update message.

Definition at line 203 of file WKFUtils.C.

References wkfmsgtimer::timer, wkfmsgtimer::updatetime, wkf_timer_start, and wkf_timer_timenow.

wkf_timerhandle wkf_timer_create void   
 

create a timer (clears timer).

Definition at line 174 of file WKFUtils.C.

References wkf_timerhandle.

Referenced by BaseMolecule::analyze, ANARIDisplayDevice::ANARIDisplayDevice, ANARIRender::ANARIRender, CUDAQuickSurf::calc_surf, Orbital::calculate_mo, VolMapCreateILS::compute, VolMapCreate::compute_all, ComputeOccupancyMap_calculate_slab, CoorPluginData::CoorPluginData, cuda_occupancy_thread, cudabusbw, cudaenergythread, cudamaddgflops, energythread, VolumeTexture::generateColorScaleTexture, gpu_ooc_bench, Symmetry::guess, LibTachyonDisplayDevice::LibTachyonDisplayDevice, measure_rmsdmat_qcp, measure_rmsdmat_qcp_ooc, Mobile::Mobile, openclenergythread, OptiXDisplayDevice::OptiXDisplayDevice, OptiXRenderer::OptiXRenderer, OSPRay2DisplayDevice::OSPRay2DisplayDevice, OSPRay2Renderer::OSPRay2Renderer, OSPRayDisplayDevice::OSPRayDisplayDevice, OSPRayRenderer::OSPRayRenderer, qcp_soa_gpu_ooc, QuickSurf::QuickSurf, Segmentation::segment, stream_bench, VideoStream::VideoStream, vmd_cuda_calc_density, vmd_cuda_cc_calc, vmd_cuda_compare_sel_refmap, vmd_cuda_devpool_latency, vmd_cuda_gaussdensity_calc, vmd_cuda_vol_cpotential, vmd_opencl_vol_cpotential, vmdbench_analyze_selection, vmdbench_minmax_1fv, vmdbench_minmax_3fv, vmdbench_minmaxmean_1fv, vmddevpoolcudalatencythread, vol_cpotential, vol_cpotential_cpu, Watershed::watershed, and wkf_msg_timer_create.

void wkf_timer_destroy wkf_timerhandle    v
 

create a timer (clears timer).

Definition at line 181 of file WKFUtils.C.

References wkf_timerhandle.

void wkf_timer_start wkf_timerhandle    v
 

start a timer (clears timer).

Definition at line 137 of file WKFUtils.C.

References wkf_timer::tz, and wkf_timerhandle.

double wkf_timer_start_time wkf_timerhandle    v
 

report wall starting time.

Definition at line 155 of file WKFUtils.C.

References wkf_timerhandle.

void wkf_timer_stop wkf_timerhandle    v
 

stop a timer.

Definition at line 142 of file WKFUtils.C.

References wkf_timer::endtime, wkf_timer::tz, and wkf_timerhandle.

double wkf_timer_stop_time wkf_timerhandle    v
 

report wall stopping time.

Definition at line 163 of file WKFUtils.C.

References wkf_timer::endtime, and wkf_timerhandle.

double wkf_timer_time wkf_timerhandle    v
 

report elapsed time in seconds.

Definition at line 147 of file WKFUtils.C.

References wkf_timer::endtime, and wkf_timerhandle.

double wkf_timer_timenow wkf_timerhandle    v
 

report elapsed time in seconds.

Definition at line 185 of file WKFUtils.C.

References wkf_timer_stop, wkf_timer_time, and wkf_timerhandle.


Generated on Sat Nov 9 02:46:14 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002