xref: /openbmc/libpldm/src/environ/time.c (revision e78634b9c2b23d6bcbaf76b779a593df32816c84)
1*e78634b9SAmithash Prasad /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
2*e78634b9SAmithash Prasad #include "compiler.h"
3*e78634b9SAmithash Prasad #include "environ/time.h"
4*e78634b9SAmithash Prasad 
5*e78634b9SAmithash Prasad #include <time.h>
6*e78634b9SAmithash Prasad 
7*e78634b9SAmithash Prasad LIBPLDM_ABI_TESTING LIBPLDM_CC_WEAK int
libpldm_clock_gettime(clockid_t clockid,struct timespec * ts)8*e78634b9SAmithash Prasad libpldm_clock_gettime(clockid_t clockid, struct timespec *ts)
9*e78634b9SAmithash Prasad {
10*e78634b9SAmithash Prasad 	return clock_gettime(clockid, ts);
11*e78634b9SAmithash Prasad }
12