iPXE
null_time.h
Go to the documentation of this file.
1 #ifndef _IPXE_NULL_TIME_H
2 #define _IPXE_NULL_TIME_H
3 
4 /** @file
5  *
6  * Nonexistent time source
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #ifdef TIME_NULL
13 #define TIME_PREFIX_null
14 #else
15 #define TIME_PREFIX_null __null_
16 #endif
17 
18 static inline __always_inline time_t
19 TIME_INLINE ( null, time_now ) ( void ) {
20  return 0;
21 }
22 
23 #endif /* _IPXE_NULL_TIME_H */
static __always_inline time_t TIME_INLINE(null, time_now)(void)
Definition: null_time.h:19
time_t time_now(void)
Get current time in seconds (ignoring system clock offset)
#define __always_inline
Declare a function to be always inline.
Definition: compiler.h:611
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int64_t time_t
Seconds since the Epoch.
Definition: time.h:18