AgsTime

AgsTime — utility functions of time

Functions

Types and Values

#define AGS_TIME_ZERO
#define USEC_PER_SEC
#define NSEC_PER_SEC

Includes

#include <ags/lib/ags_time.h>

Description

Functions to help you dealing with time.

Functions

ags_time_get_uptime_from_offset ()

gchar *
ags_time_get_uptime_from_offset (guint offset,
                                 gdouble bpm,
                                 gdouble delay,
                                 gdouble delay_factor);

Calculates uptime from offset by applying factors bpm , delay and delay_factor giving you the result as string.

Parameters

offset

the offset in tics

 

bpm

the beats per minute

 

delay

the buffer time as delay

 

delay_factor

tact segmentation

 

Returns

the string containing the time, a minus sign is prepend if factors are invalid

Since: 1.0.0

Types and Values

AGS_TIME_ZERO

#define AGS_TIME_ZERO "0000:00.000\0"

USEC_PER_SEC

#define USEC_PER_SEC    (1000000) /* The number of msecs per sec. */

NSEC_PER_SEC

#define NSEC_PER_SEC    (1000000000) /* The number of nsecs per sec. */