Loading...
Searching...
No Matches
sphgtod.h
Go to the documentation of this file.
/*
* Copyright (c) 2012-2014 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation, Ryan S Arnold - New API.
* IBM Corporation, Steven J Munroe - Correct Intel implementation.
*/
#ifndef __SPH_GTOD_H_
#define __SPH_GTOD_H_
#include <sys/time.h>
#include <sphtimer.h>
#ifdef __cplusplus
#define __C__ "C"
#else
#define __C__
#endif
extern __C__ int
sphgtod (struct timeval *tv, struct timezone *tz);
extern __C__ sphtimer_t
sphget_gtod_conv_factor (void);
extern __C__ int
sphtb2gtod_withfactor (struct timeval *tv,
sphtimer_t timestamp,
sphtimer_t tb2gtod_factor);
#endif /* __SPH_GTOD_H */
__C__
#define __C__
ignore this macro behind the curtain
Definition sasmsync.h:32
sphget_gtod_conv_factor
__C__ sphtimer_t sphget_gtod_conv_factor(void)
Return the timebase-to-gettimeofday conversion factor.
sphgtod
__C__ int sphgtod(struct timeval *tv, struct timezone *tz)
Return the timebase converted to gettimeofday struct timeval.
sphtb2gtod_withfactor
__C__ int sphtb2gtod_withfactor(struct timeval *tv, sphtimer_t timestamp, sphtimer_t tb2gtod_factor)
Return the timebase converted to gettimeofday struct timeval.
sphtimer.h
Functions to access the Time Base register (PPC) or clock_gettime(CLOCK_MONOTONIC) measure time at hi...
sphtimer_t
unsigned long long int sphtimer_t
Value from TB/TSC register (64-bits on all platforms).
Definition sphtimer.h:66