RaftLib  0.3a
C++ Stream Processing Template Library
Public Member Functions | List of all members
Clock Class Referenceabstract

Public Member Functions

 Clock ()
 
virtual ~Clock ()
 
virtual sclock_t getTime ()=0
 
sclock_t getResolution ()
 

Constructor & Destructor Documentation

Clock::Clock ( )

default initializer

Clock.cpp -

Author
: Jonathan Beard
Version
: Thu May 29 14:23:18 2014

Copyright 2014 Jonathan Beard

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Clock::~Clock ( )
virtual

destructor

Member Function Documentation

sclock_t Clock::getResolution ( )

getResolution - returns the minimum "resolution" which might be better termed latency for this clock's update takes non-zero time to compute empirically.

Returns
sclock_t, current resolution.

TODO, figure out why some sizes throw a KERN_PROT_FAULT on OS X

something lower than we'd expect resolution to be

Here is the call graph for this function:

Here is the caller graph for this function:

virtual sclock_t Clock::getTime ( )
pure virtual

getTime - return the current time, accurate to below resolution.

Returns
sclock_t, current time

Here is the caller graph for this function:


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