RaftLib
0.3a
C++ Stream Processing Template Library
|
Public Member Functions | |
Clock () | |
virtual | ~Clock () |
virtual sclock_t | getTime ()=0 |
sclock_t | getResolution () |
Clock::Clock | ( | ) |
default initializer
Clock.cpp -
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.
|
virtual |
destructor
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.
TODO, figure out why some sizes throw a KERN_PROT_FAULT on OS X
something lower than we'd expect resolution to be
|
pure virtual |
getTime - return the current time, accurate to below resolution.