Shared Persistent Heap Data Environment Manual  1.1.0
sphgtod.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012-2014 IBM Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation, Ryan S Arnold - New API.
10  * IBM Corporation, Steven J Munroe - Correct Intel implementation.
11  */
12 
13 #ifndef __SPH_GTOD_H_
14 #define __SPH_GTOD_H_
15 
30 #include <sys/time.h>
31 #include <sphtimer.h>
32 
33 #ifdef __cplusplus
34 #define __C__ "C"
35 #else
36 #define __C__
37 #endif
38 
52 extern __C__ int
53 sphgtod (struct timeval *tv, struct timezone *tz);
54 
70 extern __C__ sphtimer_t
72 
89 extern __C__ int
90 sphtb2gtod_withfactor (struct timeval *tv,
91  sphtimer_t timestamp,
92  sphtimer_t tb2gtod_factor);
93 
94 #endif /* __SPH_GTOD_H */
__C__ int sphgtod(struct timeval *tv, struct timezone *tz)
Return the timebase converted to gettimeofday struct timeval.
Functions to access the Time Base register (PPC) or clock_gettime(CLOCK_MONOTONIC) measure time at hi...
__C__ sphtimer_t sphget_gtod_conv_factor(void)
Return the timebase-to-gettimeofday conversion factor.
unsigned long long int sphtimer_t
Value from TB/TSC register (64-bits on all platforms).
Definition: sphtimer.h:66
#define __C__
ignore this macro behind the curtain
Definition: sasmsync.h:32
__C__ int sphtb2gtod_withfactor(struct timeval *tv, sphtimer_t timestamp, sphtimer_t tb2gtod_factor)
Return the timebase converted to gettimeofday struct timeval.