geopm 3.2.1.dev535+ga96c120fc
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
geopm_time.h File Reference
#include <errno.h>
#include <math.h>
#include <string.h>
#include "geopm_public.h"
#include <stdbool.h>
#include <time.h>
Include dependency graph for geopm_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  geopm_time_s
 structure to abstract the timespec on linux from other representations of time. More...

Macros

#define GEOPM_TIME_STRING_MAX   255ULL
 String allocation size sufficient for results of geopm_time function calls.

Functions

int GEOPM_PUBLIC geopm_time_zero (struct geopm_time_s *zero_time)
int GEOPM_PUBLIC geopm_time_real_to_iso_string (const struct geopm_time_s *time, int buf_size, char *buf)

Macro Definition Documentation

◆ GEOPM_TIME_STRING_MAX

#define GEOPM_TIME_STRING_MAX   255ULL

String allocation size sufficient for results of geopm_time function calls.

Function Documentation

◆ geopm_time_real_to_iso_string()

int GEOPM_PUBLIC geopm_time_real_to_iso_string ( const struct geopm_time_s * time,
int buf_size,
char * buf )

◆ geopm_time_zero()

int GEOPM_PUBLIC geopm_time_zero ( struct geopm_time_s * zero_time)