reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

#include <ofUtils.h>

Public Types

enum  Mode { System , FixedRate }
 

Public Member Functions

uint64_t getAsMilliseconds () const
 
uint64_t getAsMicroseconds () const
 
uint64_t getAsNanoseconds () const
 
double getAsSeconds () const
 
timespec getAsTimespec () const
 
std::chrono::time_point< std::chrono::nanoseconds > getAsTimePoint () const
 
std::chrono::nanoseconds operator- (const ofTime &) const
 
bool operator< (const ofTime &) const
 
bool operator> (const ofTime &) const
 
bool operator<= (const ofTime &) const
 
bool operator>= (const ofTime &) const
 
template<typename rep , typename ratio >
ofTime operator+ (const std::chrono::duration< rep, ratio > &duration) const
 
template<typename rep , typename ratio >
ofTimeoperator+= (const std::chrono::duration< rep, ratio > &duration)
 

Public Attributes

uint64_t seconds = 0
 
uint64_t nanoseconds = 0
 
enum ofTime::Mode mode = System
 

Member Enumeration Documentation

◆ Mode

Enumerator
System 
FixedRate 

Member Function Documentation

◆ getAsMicroseconds()

uint64_t ofTime::getAsMicroseconds ( ) const

◆ getAsMilliseconds()

uint64_t ofTime::getAsMilliseconds ( ) const

◆ getAsNanoseconds()

uint64_t ofTime::getAsNanoseconds ( ) const

◆ getAsSeconds()

double ofTime::getAsSeconds ( ) const

◆ getAsTimePoint()

std::chrono::time_point< std::chrono::nanoseconds > ofTime::getAsTimePoint ( ) const

◆ getAsTimespec()

timespec ofTime::getAsTimespec ( ) const

◆ operator+()

template<typename rep , typename ratio >
ofTime ofTime::operator+ ( const std::chrono::duration< rep, ratio > &  duration) const
inline

◆ operator+=()

template<typename rep , typename ratio >
ofTime & ofTime::operator+= ( const std::chrono::duration< rep, ratio > &  duration)
inline

◆ operator-()

std::chrono::nanoseconds ofTime::operator- ( const ofTime other) const

◆ operator<()

bool ofTime::operator< ( const ofTime other) const

◆ operator<=()

bool ofTime::operator<= ( const ofTime other) const

◆ operator>()

bool ofTime::operator> ( const ofTime other) const

◆ operator>=()

bool ofTime::operator>= ( const ofTime other) const

Member Data Documentation

◆ mode

enum ofTime::Mode ofTime::mode = System

◆ nanoseconds

uint64_t ofTime::nanoseconds = 0

◆ seconds

uint64_t ofTime::seconds = 0

The documentation for this struct was generated from the following files:
  • /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/utils/ofUtils.h
  • /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/utils/ofUtils.cpp