]> 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:31:06 +0000 (09:31 -0500)
commit15de2f1727e674a85987425f14574647f01c7a73
treec72618d5fea50c7561e5e6925bc89479cee60927
parent35302efe73bb9bcf0547d6c515457fb0fab50aa1
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