#include "gru_duration.h"
Functions | |
gru_duration_t | gru_duration_from_seconds (uint64_t seconds) |
Builds a duration struct that represents a duration. | |
gru_duration_t | gru_duration_from_minutes (uint64_t minutes) |
Builds a duration struct that represents a duration. | |
uint64_t | gru_duration_seconds (gru_duration_t duration) |
Given a duration object, return the number of seconds between its start and end time. | |
uint64_t | gru_duration_minutes (gru_duration_t duration, double *fractional) |
Given a duration object, return the number of minutes between its start and end time. |
gru_duration_t gru_duration_from_minutes | ( | uint64_t | minutes | ) |
Builds a duration struct that represents a duration.
That means, the current time + the given number of minutes
minutes | the duration in minutes |
gru_duration_t gru_duration_from_seconds | ( | uint64_t | seconds | ) |
Builds a duration struct that represents a duration.
That means, the current time + the given number of seconds
seconds | the duration in seconds |
uint64_t gru_duration_minutes | ( | gru_duration_t | duration, | |
double * | fractional | |||
) |
Given a duration object, return the number of minutes between its start and end time.
duration | a duration object to calculate |
uint64_t gru_duration_seconds | ( | gru_duration_t | duration | ) |
Given a duration object, return the number of seconds between its start and end time.
duration | a duration object to calculate |