|
|
|
Date Posted: |
December 14th, 2001
|
|
|
Last Updated: |
December 14th, 2001
|
|
|
License: |
BSD/MIT |
|
|
Downloads: |
457 total; 8 recently |
|
|
Page Views: |
7,026 total |
|
|
User Rating: |
awaiting 10 votes |
 |
|
Jump to the Downloads section |
|
 |
 |
About ClockTime Class:
A class for converting time into days, hours, minutes, seconds, etc. Can also generate a BString containing the properly formatted time.
Converts "bigtime_t" (1/1000000sec) time measurements into "Clock Time". Time can be converted to total days, total hours, or total minutes, etc.
"Time parts" can be retrieved, as in <days>:<hours>:<minutes>:<seconds>.<fractionals>.
String formatting options include whether or not to include digits to the left or right of the decimal point (fractions of a second), the number of (zero-padded) decimal places you want, etc.
You can also choose to display fractions of a second (the right-hand side of the decimal point) in any number "fractional" parts that you want. For instance, you could choose 10ths of a second, 100ths of a second, or 30ths of a second.
Very handy, very clean, and can handle VERY LARGE and VERY SMALL time measurements. Very cool.
|
 |
|
 |
Latest Version |
 |
|
 |
| |
 |
|
Details about this version:
First public release.
WARNING: There is a calculation bug in a few of the time conversion functions. This will be fixed shortly, in a new release. You have been warned. :)
Supports:
bigtime_t to Total Days, Total Hours, Total Minutes, etc.
bigtime_t to Days "Part", Hours "Part", Minutes "Part", etc.
bigtime_t to Formatted Text (BString).
Fractional seconds "fraction" is selectable.
Several useful string-formatting options.
DOES NOT (YET) SUPPORT Formatted Text input (Formatted Text to bigtime_t)... coming soon.
Not terribly efficient, but not too slow either. :)
|
| |
 |
|
Any Processor - requires R5 (4 KB) |
457 downloads |
|
 |
|
 |
 |
| |
  |
[rating: 10] |
|
 |
Primary Location |
|
|
| Add Additional Location |
 |
|
 |
|
| Source Included |
 |
 |
 |
 |
 |
Like this app? Have questions or comments?
Why not tell the author? Use the "e-mail publisher" link to get in touch with the publisher; they usually love getting feedback.
|
|
 |
 |
|
 |
 |
 |
 |
 |
 |
 |
|
|
 |
 |
 |
| |
Recent Downloads - # 2,420
Total Downloads - # 2,784
Total Views - # 2,524
User Ratings - N/A
|
 |
 |
 |
 |
| |
Class Libraries
Example Code
Misc. Development
|
 |
 |
 |
 |
 |
1. BePodder - 9.80
2. QEMU - 9.68
3. ScummVM - 9.57
4. cpu_fix - 9.42
5. Jukebox - 9.40
6. libdl.so - 9.40
7. Haiku AGP busm... - 9.35
8. vim6 - 9.31
9. Beezer - 9.26
10. HandBrake - 9.25
|
 |
 |
 |
 |
 |
1. BeOS 5 Perso... - 13,526
2. Realtek RTL8... - 13,069
3. Ati Radeon G... - 12,497
4. Ensoniq Audio... - 7,529
5. ATI Rage 128... - 7,425
6. USB Joystick... - 5,628
7. Broadcom 440x... - 5,393
8. USB Serial dr... - 4,699
9. S3 Trio 64 v2... - 4,693
10. Intel Extreme... - 4,456
|
 |
 |
 |
 |
| You are not logged in.
Login
|
 |
 |
 |
 |
|