TianoCore EDK2 master
Loading...
Searching...
No Matches
TimerWrapper.c File Reference

Go to the source code of this file.

Data Structures

struct  tm
 

Macros

#define IsLeap(y)   (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
 
#define SECSPERMIN   (60)
 
#define SECSPERHOUR   (60 * 60)
 
#define SECSPERDAY   (24 * SECSPERHOUR)
 

Typedefs

typedef int time_t
 

Functions

time_t time (time_t *timer)
 
struct tmgmtime (const time_t *timer)
 
time_t _time64 (time_t *t)
 

Variables

UINTN CumulativeDays [2][14]
 

Detailed Description

C Run-Time Libraries (CRT) Time Management Routines Wrapper Implementation for MbedTLS-based Cryptographic Library (used in DXE & RUNTIME).

Copyright (c) 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file TimerWrapper.c.

Macro Definition Documentation

◆ IsLeap

#define IsLeap (   y)    (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))

Definition at line 38 of file TimerWrapper.c.

◆ SECSPERDAY

#define SECSPERDAY   (24 * SECSPERHOUR)

Definition at line 41 of file TimerWrapper.c.

◆ SECSPERHOUR

#define SECSPERHOUR   (60 * 60)

Definition at line 40 of file TimerWrapper.c.

◆ SECSPERMIN

#define SECSPERMIN   (60)

Definition at line 39 of file TimerWrapper.c.

Typedef Documentation

◆ time_t

typedef int time_t

Definition at line 15 of file TimerWrapper.c.

Function Documentation

◆ _time64()

time_t _time64 ( time_t *  t)

_time64 function.

Definition at line 193 of file TimerWrapper.c.

◆ gmtime()

struct tm * gmtime ( const time_t *  timer)

Convert a time value from type time_t to struct tm.

Definition at line 130 of file TimerWrapper.c.

◆ time()

time_t time ( time_t *  timer)

Get the system time as seconds elapsed since midnight, January 1, 1970.

Definition at line 85 of file TimerWrapper.c.

Variable Documentation

◆ CumulativeDays

UINTN CumulativeDays[2][14]

Definition at line 48 of file TimerWrapper.c.