Show EOL distros:
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Author: Daniel Stonier (d.stonier@gmail.com)
- License: BSD
- External website: http://snorriheim.dnsdojo.com/redmine/wiki/ecl
- Source: svn https://embedded-control-library.googlecode.com/svn/trunk/ecl_lite
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Author: Daniel Stonier (d.stonier@gmail.com)
- License: BSD
- External website: http://snorriheim.dnsdojo.com/redmine/wiki/ecl
- Source: svn https://embedded-control-library.googlecode.com/svn/tags/ecl_lite/fuerte
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: groovy-devel)
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: hydro-devel)
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-indigo-kinetic)
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Maintainer status: developed
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: indigo-devel)
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-indigo-kinetic)
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-lunar)
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-melodic)
Package Summary
Provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes.
- Maintainer status: maintained
- Maintainer: Daniel Stonier <d.stonier AT gmail DOT com>
- Author: Daniel Stonier <d.stonier AT gmail DOT com>
- License: BSD
- Bug / feature tracker: https://github.com/stonier/ecl_lite/issues
- Source: git https://github.com/stonier/ecl_lite.git (branch: release/0.61-noetic)
Overview
This provides a portable set of time functions that are especially useful for porting other code or being wrapped by higher level c++ classes. Code has been divided broadly via a set of cmake probes into the following groups:
Compiling & Linking
If outside ros, you will also need to link to ecl_time_lite.
Usage
Time Functions
The function epoch_time is often not exactly epoch time (i.e. secs from 1970), but dependant on your platform. Nonetheless, it always provides a relative timer measuring in sec/nsecs. Note that the time is only guaranteed to be monotonic (i.e. it won't jump) if cmake has defined the ECL_HAS_CLOCK_MONOTONIC macro.
The function cpu_time which is the amount of time that the process has actually spent executing on the cpu. This is sometimes useful for benchmarking tests.
Error Handling
Use with the TimeError (an extension of ecl_errors's Error handler) that provides time function specific verbose error messages.
Macros
The cmake detection scripts configure the header ecl/time_lite/config.hpp with many macros that describe your platform and also your time implementation in detail (particularly with posix, there are alot of levels and optionally available api). These are mostly for internal purposes, but may be useful to the user.
Examples
src/examples/time_functions