• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright (c) 2017 Cyril Hrubis <chrubis@suse.cz>
3  */
4 
5 /*
6  * clock_gettime() and clock_getres() functions
7  */
8 
9 #ifndef TST_CLOCKS__
10 #define TST_CLOCKS__
11 
12 int tst_clock_getres(clockid_t clk_id, struct timespec *res);
13 
14 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts);
15 
16 int tst_clock_settime(clockid_t clk_id, struct timespec *ts);
17 
18 /*
19  * Converts clock id to a readable name.
20  */
21 const char *tst_clock_name(clockid_t clk_id);
22 
23 #endif /* TST_CLOCKS__ */
24