Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / ep / ep_time.c @ master

History | View | Annotate | Download (18.2 KB)

# Date Author Comment
efa8fe4c 09/19/2020 12:02 PM Eric Allman

Add some ep_time routines to compute and print intervals (for measuring
wall clock times).

31ec1dd0 09/17/2020 12:39 PM Eric Allman

Ask system for clock accuracy if possible.

76b104d6 06/18/2019 02:54 PM Eric Allman

Fix a bug that might cause "OK" status codes to be interpreted as not
OK. This would only happen if the OK status included a value between 29
and 31 bits large.

083aa58b 05/07/2019 01:38 PM Eric Allman

Update ep_time_parse_interval to use more natural units, notably "m" to
mean "minutes" and "l" or "ms" to mean "milliseconds". It was too
confusing before.

08d71997 04/29/2019 12:01 PM Eric Allman

Add ep_time_sleep to sleep for an interval specified in an EP_TIME_SPEC.

bef6a10f 04/10/2019 12:24 PM Eric Allman

Be consistent on time accuracy handling for ep_time_from_*sec.

5d2a3156 04/02/2019 05:51 PM Eric Allman

Add new ep routine to parse time intervals with scaling. Will
ultimately make interval-based parameters more user friendly.

c87dd166 01/23/2019 07:56 AM Eric Allman

Update license date on all files. No functional changes.

d10a9e21 08/30/2018 07:22 PM Eric Allman

Add some more time conversion routines for convenience. Nothing magic.

65ffb923 08/23/2018 12:02 PM Eric Allman

Add some ep_time APIs to simplify some usages.

92243bf4 05/25/2018 01:22 PM Eric Allman

Snapshot in on-disk format conversion from ad hoc files to SQLite
databases. Compiles but is completely untested.

328ab6a8 01/23/2018 05:34 PM Eric Allman

Changes for signed/unsigned conflicts and other type nits. C++ is much
more picky about these than C, but this is probably justified. Sadly,
some of the changes are pretty ugly.

d453df85 09/07/2017 03:53 PM Eric Allman

Fix sigfig printing for decimal seconds.

25f8f3d6 09/07/2017 01:57 PM Eric Allman

Deal with some compiler warnings.

66f6c374 08/02/2017 09:11 AM Eric Allman

Make Helgrind annotations work properly for (most?) race conditions.

0a3d21a6 07/28/2017 03:00 PM Eric Allman

Add options to ep_time_print to adjust number of significant figures
printed.

897accec 02/06/2017 10:41 AM Eric Allman

Update licenses to 2017.

9f2e0b99 02/06/2017 10:36 AM Eric Allman

Make human readable timestamps more human readable.

3f7c58cf 11/30/2016 03:33 PM Eric Allman

White space cleanup (can you say "obsessive-compulsive disorder"?)

901580ab 10/27/2016 08:14 AM Eric Allman

Tweak compile time configuration for EP_OSCF_USE_GETDATE and
EP_OSCF_HAS_SD_NOTIFY.

f1c49f15 07/28/2016 09:25 PM Eric Allman

Avoid compiler warning in some environments.

d2647d1f 07/26/2016 07:34 PM Eric Allman

Next take on read-by-timestamp. This version works for read, multiread,
and subscribe. There are still some glitches (e.g., you can't have a
starting timestamp in the future) but fixing these would require major
code restructuring, and besides, you can't specify a starting record...

bd606a99 07/25/2016 07:54 PM Eric Allman

Improved date parsing in libep.

6bd5476b 12/01/2015 01:22 PM Eric Allman

Update license. No code changes.

055d3009 11/21/2015 01:20 PM Eric Allman

Include copyright in all files. There are scripts to do bulk
replacement of the copyright if desired.

9a739eb0 10/21/2015 03:40 PM Eric Allman

Have ep_time_format return the buffer for ease in printing.

034d97fd 07/30/2015 12:06 PM Eric Allman

Add creation time to logs. This also changes the ep_time_format and
ep_time_print APIs.

2715271a 02/04/2015 05:40 PM Eric Allman

Improvements to time handling (including allowing negative deltas).

55b8c1ad 02/02/2015 08:17 AM Eric Allman

Change gdp_event_next to allow selection of events for a specific GCL.

edfeece5 01/22/2015 08:24 AM Eric Allman

Add ep_time_deltanow to return a time a fixed number of nanoseconds into
the future.

14aa795e 10/28/2014 07:41 AM Eric Allman

Fix some white space goofs (space-tab).

e308ebbb 10/23/2014 04:13 PM Eric Allman

Changes to make EP_STAT 32 bits everywhere. JavaScript can't handle
integers more than 53 bits wide.

0adcb3e0 08/26/2014 01:56 PM Eric Allman

Representation changes and functionality fixes:
* Change representation of gdp_recno_t to be 64 bits.
* Replace tt_interval with EP_TIME_SPEC.
* Augment EP_TIME_SPEC to have a floating-point tv_accuracy field and
pack the structure to keep the whole thing to 16 bytes....

a901db09 07/28/2014 12:32 PM Eric Allman

Redo spacing changes (but in a very limited way). At this point tabs
(hard, soft, and shiftwidth) are four characters.

f63bbf6f 07/23/2014 01:48 PM Eric Allman

Changes to compile under both clang and gcc on Linux. There are
still some warnings being knocked out on both compilers, and Linux
requires use of "make STD=" if you are using GCC; it seems -std=c99
makes constants into non-constants if you cast them. This isn't an...

8f6f25c3 07/16/2014 04:02 PM Eric Allman

Change to use ep_time interface instead of direct system calls for
portability. Also changes the ep_time interface types to be more
consistent with other modules in that library.

a1e865d6 07/16/2014 03:49 PM Eric Allman

Add new portability interface ep_time_now to get the current time.