UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
src
utils
time.h
Go to the documentation of this file.
1
7
/*
8
* Copyright (c) 2019-2023 CESNET, z. s. p. o.
9
* All rights reserved.
10
*
11
* Redistribution and use in source and binary forms, with or without
12
* modification, is permitted provided that the following conditions
13
* are met:
14
*
15
* 1. Redistributions of source code must retain the above copyright
16
* notice, this list of conditions and the following disclaimer.
17
*
18
* 2. Redistributions in binary form must reproduce the above copyright
19
* notice, this list of conditions and the following disclaimer in the
20
* documentation and/or other materials provided with the distribution.
21
*
22
* 3. Neither the name of CESNET nor the names of its contributors may be
23
* used to endorse or promote products derived from this software without
24
* specific prior written permission.
25
*
26
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
27
* "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
28
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
29
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
30
* EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
36
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
37
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
*/
39
40
#ifndef UTILS_TIME_H_
41
#define UTILS_TIME_H_
42
43
#include <stdint.h>
44
45
enum
{
46
FORMAT_TIME_MS_BUF_LEN
= 13
47
};
48
56
void
format_time_ms
(uint64_t
ts
,
char
buf[
static
FORMAT_TIME_MS_BUF_LEN
]);
57
58
#endif
// UTILS_TIME_H_
59
ts
uint32_t ts
Definition
tfrc.c:101
format_time_ms
void format_time_ms(uint64_t ts, char buf[static FORMAT_TIME_MS_BUF_LEN])
Definition
time.c:46
FORMAT_TIME_MS_BUF_LEN
@ FORMAT_TIME_MS_BUF_LEN
Definition
time.h:46
Generated on Wed Sep 25 2024 14:27:16 for UltraGrid by
1.12.0