fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
time.h File Reference

Basic time tracking utility functions. More...

#include <stdint.h>
#include <time.h>
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct timespec timeInstant
 

Functions

timeInstant timeGetNow (void)
 Get the current system time.
 
int64_t timeElapsedNs (timeInstant start, timeInstant end)
 Return the time elapsed from end since the start time in nanoseconds.
 

Detailed Description

Basic time tracking utility functions.

Typedef Documentation

◆ timeInstant

typedef struct timespec timeInstant

Function Documentation

◆ timeElapsedNs()

int64_t timeElapsedNs ( timeInstant start,
timeInstant end )

Return the time elapsed from end since the start time in nanoseconds.

Parameters
startstart time
endend time
Returns
time elapsed in nanoseconds
Here is the caller graph for this function:

◆ timeGetNow()

timeInstant timeGetNow ( void )

Get the current system time.

Returns
current time
Here is the caller graph for this function: