Logo Search packages:      
Sourcecode: sofia-sip version File versions

su_time.h File Reference


Detailed Description

Time types and functions.

Defined when <sofia-sip/su_time.h> has been included.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Thu Mar 18 19:40:51 1999 pessi

Definition in file su_time.h.

#include "sofia-sip/su_types.h"

Go to the source code of this file.

Classes

struct  su_time_s

Defines

#define SU_DURATION_MAX   SU_DURATION_MAX
#define SU_E9   (1000000000U)
#define SU_NTP_C(x)   SU_U64_C(x)
#define SU_SEC_TO_DURATION(sec)   ((su_duration_t)(1000 * (sec)))
#define SU_TIME_CMP(t1, t2)
#define SU_TIME_EPOCH   2208988800UL

Typedefs

typedef long su_duration_t
typedef uint64_t su_nanotime_t
typedef uint64_t su_ntp_t
typedef struct su_time_s su_time_t

Enumerations

enum  { SU_DURATION_MAX = 0x7fffffffL }

Functions

SOFIAPUBFUN uint64_t su_counter (void)
SOFIAPUBFUN su_duration_t su_duration (su_time_t const t1, su_time_t const t2)
SOFIAPUBFUN su_nanotime_t su_monotime (su_nanotime_t *return_time)
SOFIAPUBFUN uint64_t su_nanocounter (void)
SOFIAPUBFUN su_nanotime_t su_nanotime (su_nanotime_t *return_time)
SOFIAPUBFUN su_time_t su_now (void)
SOFIAPUBFUN uint32_t su_ntp_fraq (su_time_t t)
SOFIAPUBFUN uint32_t su_ntp_hi (su_ntp_t)
SOFIAPUBFUN su_ntp_t su_ntp_hilo (uint32_t hi, uint32_t lo)
SOFIAPUBFUN uint32_t su_ntp_lo (su_ntp_t)
SOFIAPUBFUN uint32_t su_ntp_mw (su_ntp_t ntp)
SOFIAPUBFUN su_ntp_t su_ntp_now (void)
SOFIAPUBFUN uint32_t su_ntp_sec (void)
SOFIAPUBFUN uint32_t su_random ()
SOFIAPUBFUN void su_time (su_time_t *tv)
SOFIAPUBFUN su_time_t su_time_add (su_time_t t, su_duration_t dur)
SOFIAPUBFUN long su_time_cmp (su_time_t const t1, su_time_t const t2)
SOFIAPUBFUN su_time_t su_time_dadd (su_time_t t, double dur)
SOFIAPUBFUN double su_time_diff (su_time_t const t1, su_time_t const t2)
SOFIAPUBFUN uint32_t su_time_ms (su_time_t t)
SOFIAPUBFUN int su_time_print (char *s, int n, su_time_t const *tv)


Generated by  Doxygen 1.6.0   Back to index