]> git.ipfire.org Git - thirdparty/asterisk.git/commit
time: Add timeval create and unit conversion functions
authorKevin Harwell <kharwell@sangoma.com>
Fri, 5 Mar 2021 18:47:38 +0000 (12:47 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 31 Mar 2021 14:30:36 +0000 (09:30 -0500)
commiteb92fb7298396bfa92181f8e2fa81901157213e1
tree91a8104479eee935eb36181954ea379fe064e4e8
parent8db2a340650d0808da468e2b0139dfa0a2075517
time: Add timeval create and unit conversion functions

Added a TIME_UNIT enumeration, and a function that converts a
string to one of the enumerated values. Also, added functions
that create and initialize a timeval object using a specified
value, and unit type.

Change-Id: Ic31a1c3262a44f77a5ef78bfc85dcf69a8d47392
include/asterisk/time.h
main/time.c [new file with mode: 0644]
tests/test_time.c