Qt 4.8
Namespaces | Enumerations | Functions
qtconcurrentiteratekernel.cpp File Reference
#include "qtconcurrentiteratekernel.h"
#include <mach/mach.h>
#include <mach/mach_time.h>
#include <unistd.h>
#include "private/qfunctions_p.h"

Go to the source code of this file.

Namespaces

 QtConcurrent
 The QtConcurrent namespace provides high-level APIs that make it possible to write multi-threaded programs without using low-level threading primitives.
 

Enumerations

enum  { TargetRatio = 100, MedianSize = 7 }
 

Functions

static double elapsed (qint64 after, qint64 before)
 
static qint64 getticks ()
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TargetRatio 
MedianSize 

Definition at line 65 of file qtconcurrentiteratekernel.cpp.

Function Documentation

◆ elapsed()

static double elapsed ( qint64  after,
qint64  before 
)
static

◆ getticks()

static qint64 getticks ( )
static

Definition at line 72 of file qtconcurrentiteratekernel.cpp.

Referenced by elapsed(), and QBenchmarkTimeMeasurer::metricType().

73 {
74  return mach_absolute_time();
75 }