DCMTK Version 3.7.0 OFFIS DICOM Toolkit

Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
OFTimer Class Reference

A class for measurement of time. More...

## Public Member Functions
| OFTimer ()
| constructor
void | reset ()
| reset start time
double | getDiff () const
| get elapsed time. More...

## Static Public Member Functions
static double | getDiff (double start)
| get difference between current time and specified time More...
static double | getTime ()
| get current time More...

## Private Attributes
double | Start
| reference/start time

## Detailed Description

A class for measurement of time.

Timer intervals are represented as floating point values of seconds.

## Member Function Documentation

## ◆ getDiff() [1/2]

double OFTimer::getDiff | ( |  | ) | const

get elapsed time.

i.e. difference between current and start time

Returns
  elapsed time in seconds

## ◆ getDiff() [2/2]

static double OFTimer::getDiff | ( | double | start | ) |
| static

get difference between current time and specified time

Parameters

  start | reference time (in seconds)

Returns
  difference between the two times (in seconds)

## ◆ getTime()

static double OFTimer::getTime | ( |  | ) |
| static

get current time

Returns
  current time in seconds

The documentation for this class was generated from the following file:

- ofstd/include/dcmtk/ofstd/oftimer.h

Generated on Mon Dec 15 2025 for DCMTK Version 3.7.0 by Doxygen 1.9.1