agileRTOS (zrtos)  Version 0.8.0 (ghostbuster)
time.h File Reference
#include <zrtos/board.h>
Include dependency graph for time.h:

Go to the source code of this file.

Data Structures

struct  _zrtos_time_ticks_t
 
struct  _zrtos_time_t
 

Typedefs

typedef struct _zrtos_time_ticks_t zrtos_time_ticks_t
 
typedef struct _zrtos_time_t zrtos_time_t
 

Functions

zrtos_time_ticks_t zrtos_time__get_ticks ()
 
zrtos_time_t zrtos_time__get_microseconds ()
 
zrtos_time_t zrtos_time__get_milliseconds ()
 
zrtos_time_t zrtos_time__get_seconds ()
 

Typedef Documentation

◆ zrtos_time_t

typedef struct _zrtos_time_t zrtos_time_t

◆ zrtos_time_ticks_t

Function Documentation

◆ zrtos_time__get_microseconds()

zrtos_time_t zrtos_time__get_microseconds ( )

Definition at line 32 of file time.h.

32  {
33  zrtos_time_t ret = {
34  .ts = zrtos_board__get_microseconds()
35  };
36  return ret;
37 }
uint64_t ts
Definition: time.h:22

◆ zrtos_time__get_milliseconds()

zrtos_time_t zrtos_time__get_milliseconds ( )

Definition at line 39 of file time.h.

39  {
40  zrtos_time_t ret = {
41  .ts = zrtos_board__get_microseconds() / 1000
42  };
43  return ret;
44 }
uint64_t ts
Definition: time.h:22

◆ zrtos_time__get_seconds()

zrtos_time_t zrtos_time__get_seconds ( )

Definition at line 46 of file time.h.

46  {
47  zrtos_time_t ret = {
48  .ts = zrtos_board__get_microseconds() / 1000000
49  };
50  return ret;
51 }
uint64_t ts
Definition: time.h:22

◆ zrtos_time__get_ticks()

zrtos_time_ticks_t zrtos_time__get_ticks ( )

Definition at line 25 of file time.h.

25  {
26  zrtos_time_ticks_t ret = {
27  .ticks = zrtos_board__get_ticks();
28  };
29  return ret;
30 }
uint64_t ticks
Definition: time.h:18