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

Go to the source code of this file.

Macros

#define SECSPERMIN   (60)
 
#define SECSPERHOUR   (60 * 60)
 
#define SECSPERDAY   (24 * SECSPERHOUR)
 

Functions

BOOLEAN IsLeap (time_t timer)
 
STATIC time_t CalculateTimeT (EFI_TIME *Time)
 
time_t time (time_t *timer)
 
time_t mktime (struct tm *t)
 
struct tmgmtime (const time_t *timer)
 
unsigned int sleep (unsigned int seconds)
 
int gettimeofday (struct timeval *tv, struct timezone *tz)
 

Variables

long timezone
 
UINTN CumulativeDays [2][14]
 

Detailed Description

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

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

Definition in file TimerWrapper.c.

Macro Definition Documentation

◆ SECSPERDAY

#define SECSPERDAY   (24 * SECSPERHOUR)

Definition at line 21 of file TimerWrapper.c.

◆ SECSPERHOUR

#define SECSPERHOUR   (60 * 60)

Definition at line 20 of file TimerWrapper.c.

◆ SECSPERMIN

#define SECSPERMIN   (60)

Definition at line 19 of file TimerWrapper.c.

Function Documentation

◆ CalculateTimeT()

STATIC time_t CalculateTimeT ( EFI_TIME Time)

Definition at line 87 of file TimerWrapper.c.

◆ gettimeofday()

int gettimeofday ( struct timeval tv,
struct timezone *  tz 
)

Definition at line 243 of file TimerWrapper.c.

◆ gmtime()

struct tm * gmtime ( const time_t *  timer)

Definition at line 168 of file TimerWrapper.c.

◆ IsLeap()

BOOLEAN IsLeap ( time_t  timer)

Definition at line 70 of file TimerWrapper.c.

◆ mktime()

time_t mktime ( struct tm t)

Definition at line 147 of file TimerWrapper.c.

◆ sleep()

unsigned int sleep ( unsigned int  seconds)

Definition at line 234 of file TimerWrapper.c.

◆ time()

time_t time ( time_t *  timer)

Definition at line 121 of file TimerWrapper.c.

Variable Documentation

◆ CumulativeDays

UINTN CumulativeDays[2][14]

Definition at line 30 of file TimerWrapper.c.

◆ timezone

long timezone

Definition at line 23 of file TimerWrapper.c.