ITK Release 4/Video/Time Stamp: Difference between revisions
From KitwarePublic
< ITK Release 4 | Video
Jump to navigationJump to search
(→Scales) |
|||
Line 39: | Line 39: | ||
= Scales = | = Scales = | ||
* int32 : can count in microseconds, up to 4.5 years | |||
** 2**32 / (30 * 3600 * 24.0 * 365 ) = 4.5 years | |||
* double : can count in microseconds, up to 285 years | * double : can count in microseconds, up to 285 years | ||
Line 46: | Line 49: | ||
** 2**64 / ( 1000000 * 3600 * 24.0 * 365 ) = 584942 | ** 2**64 / ( 1000000 * 3600 * 24.0 * 365 ) = 584942 | ||
** (or in nanoseconds up to 584 years) | ** (or in nanoseconds up to 584 years) | ||
= Units = | |||
* Should the time units be specified ? | |||
** Use microseconds ? |
Revision as of 14:24, 29 November 2010
Reference Systems
VRPN - UNC
URL
http://www.cs.unc.edu/Research/vrpn/vrpn_getting_started.html
Time Stamp Structure
<source lang="cpp"> struct timeval
{ __time_t tv_sec; /* Seconds. */ __suseconds_t tv_usec; /* Microseconds. */ };
</source>
OpenCV
- include/opencv/cv.h: double timestamp
- src/cv/_cvipp.h: float timestamp
- 3rdparty/include/ffmpeg_/avformat.h: int64_t timestamp;
KWSys
- static double GetTime();
ITK RealTimeClock
System Time
Scales
- int32 : can count in microseconds, up to 4.5 years
- 2**32 / (30 * 3600 * 24.0 * 365 ) = 4.5 years
- double : can count in microseconds, up to 285 years
- 2^53 / ( 1000000 * 3600 * 24.0 * 365 ) = 285
- int64 : can count in microseconds, up to 584942 years
- 2**64 / ( 1000000 * 3600 * 24.0 * 365 ) = 584942
- (or in nanoseconds up to 584 years)
Units
- Should the time units be specified ?
- Use microseconds ?