geopm  3.1.1.dev214+gba4f9f6d
GEOPM - Global Extensible Open Power Manager
Classes | Functions
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...
 

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)
 

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)