$34 GRAYBYTE WORDPRESS FILE MANAGER $61

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php85/usr/include/php/Zend/

HOME
Current File : /opt/alt/php85/usr/include/php/Zend//zend_hrtime.h
/*
   +----------------------------------------------------------------------+
   | Copyright (c) The PHP Group                                          |
   +----------------------------------------------------------------------+
   | This source file is subject to version 3.01 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | https://www.php.net/license/3_01.txt                                 |
   | If you did not receive a copy of the PHP license and are unable to   |
   | obtain it through the world-wide-web, please send a note to          |
   | [email protected] so we can mail you a copy immediately.               |
   +----------------------------------------------------------------------+
   | Author: Niklas Keller <[email protected]>                              |
   | Author: Anatol Belski <[email protected]>                                   |
   +----------------------------------------------------------------------+
*/

#ifndef ZEND_HRTIME_H
#define ZEND_HRTIME_H

#include "zend_portability.h"
#include "zend_types.h"

#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifndef PHP_WIN32
# include <time.h>
#endif

/* This file reuses code parts from the cross-platform timer library
	Public Domain - 2011 Mattias Jansson / Rampant Pixels */

#define ZEND_HRTIME_PLATFORM_POSIX   0
#define ZEND_HRTIME_PLATFORM_WINDOWS 0
#define ZEND_HRTIME_PLATFORM_APPLE_MACH_ABSOLUTE 0
#define ZEND_HRTIME_PLATFORM_APPLE_GETTIME_NSEC 0
#define ZEND_HRTIME_PLATFORM_HPUX    0
#define ZEND_HRTIME_PLATFORM_AIX     0

#if defined(_POSIX_TIMERS) && ((_POSIX_TIMERS > 0) || defined(__OpenBSD__)) && defined(_POSIX_MONOTONIC_CLOCK) && defined(CLOCK_MONOTONIC)
# undef  ZEND_HRTIME_PLATFORM_POSIX
# define ZEND_HRTIME_PLATFORM_POSIX 1
#elif defined(_WIN32) || defined(_WIN64)
# undef  ZEND_HRTIME_PLATFORM_WINDOWS
# define ZEND_HRTIME_PLATFORM_WINDOWS 1
#elif HAVE_CLOCK_GETTIME_NSEC_NP
# undef  ZEND_HRTIME_PLATFORM_APPLE_GETTIME_NSEC
# define ZEND_HRTIME_PLATFORM_APPLE_GETTIME_NSEC 1
#elif defined(__APPLE__)
# undef  ZEND_HRTIME_PLATFORM_APPLE_MACH_ABSOLUTE
# define ZEND_HRTIME_PLATFORM_APPLE_MACH_ABSOLUTE 1
#elif (defined(__hpux) || defined(hpux)) || ((defined(__sun__) || defined(__sun) || defined(sun)) && (defined(__SVR4) || defined(__svr4__)))
# undef  ZEND_HRTIME_PLATFORM_HPUX
# define ZEND_HRTIME_PLATFORM_HPUX 1
#elif defined(_AIX)
# undef  ZEND_HRTIME_PLATFORM_AIX
# define ZEND_HRTIME_PLATFORM_AIX 1
#endif

#define ZEND_HRTIME_AVAILABLE (ZEND_HRTIME_PLATFORM_POSIX || ZEND_HRTIME_PLATFORM_WINDOWS || ZEND_HRTIME_PLATFORM_APPLE_MACH_ABSOLUTE || ZEND_HRTIME_PLATFORM_APPLE_GETTIME_NSEC || ZEND_HRTIME_PLATFORM_HPUX || ZEND_HRTIME_PLATFORM_AIX)

BEGIN_EXTERN_C()

#if ZEND_HRTIME_PLATFORM_WINDOWS

ZEND_API extern double zend_hrtime_timer_scale;

#elif ZEND_HRTIME_PLATFORM_APPLE_MACH_ABSOLUTE

# include <mach/mach_time.h>
# include <string.h>
ZEND_API extern mach_timebase_info_data_t zend_hrtime_timerlib_info;

#endif

#define ZEND_NANO_IN_SEC UINT64_C(1000000000)

typedef uint64_t zend_hrtime_t;

void zend_startup_hrtime(void);

static zend_always_inline zend_hrtime_t zend_hrtime(void)
{
#if ZEND_HRTIME_PLATFORM_WINDOWS
	LARGE_INTEGER lt = {{0}};
	QueryPerformanceCounter(&lt);
	return (zend_hrtime_t)((zend_hrtime_t)lt.QuadPart * zend_hrtime_timer_scale);
#elif ZEND_HRTIME_PLATFORM_APPLE_GETTIME_NSEC
	return clock_gettime_nsec_np(CLOCK_UPTIME_RAW);
#elif ZEND_HRTIME_PLATFORM_APPLE_MACH_ABSOLUTE
	return (zend_hrtime_t)mach_absolute_time() * zend_hrtime_timerlib_info.numer / zend_hrtime_timerlib_info.denom;
#elif ZEND_HRTIME_PLATFORM_POSIX
	struct timespec ts = { .tv_sec = 0, .tv_nsec = 0 };
	if (EXPECTED(0 == clock_gettime(CLOCK_MONOTONIC, &ts))) {
		return ((zend_hrtime_t) ts.tv_sec * (zend_hrtime_t)ZEND_NANO_IN_SEC) + ts.tv_nsec;
	}
	return 0;
#elif ZEND_HRTIME_PLATFORM_HPUX
	return (zend_hrtime_t) gethrtime();
#elif  ZEND_HRTIME_PLATFORM_AIX
	timebasestruct_t t;
	read_wall_time(&t, TIMEBASE_SZ);
	time_base_to_time(&t, TIMEBASE_SZ);
	return (zend_hrtime_t) t.tb_high * (zend_hrtime_t)NANO_IN_SEC + t.tb_low;
#else
	return 0;
#endif
}

END_EXTERN_C()

#endif /* ZEND_HRTIME_H */


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
12 Mar 2026 4.58 PM
root / linksafe
0755
Optimizer
--
31 Mar 2026 8.34 AM
root / linksafe
0755
zend.h
17.336 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_API.h
106.553 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_alloc.h
20.319 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_alloc_sizes.h
2.567 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_arena.h
5.938 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ast.h
14.5 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_atomic.h
12.774 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_attributes.h
6.435 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_attributes_arginfo.h
15.501 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_bitset.h
7.841 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_build.h
1.588 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_builtin_functions.h
1.536 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_builtin_functions_arginfo.h
15.493 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_call_stack.h
3.068 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_closures.h
2.261 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_closures_arginfo.h
2.253 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_compile.h
53.205 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_config.h
0.031 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_constants.h
7.144 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_constants_arginfo.h
2.646 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_cpuinfo.h
9.29 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_dtrace.h
2.003 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_enum.h
2.859 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_enum_arginfo.h
1.651 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_errors.h
2.359 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_exceptions.h
4.472 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_exceptions_arginfo.h
15.427 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_execute.h
26.587 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_extensions.h
6.434 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_fibers.h
5.285 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_fibers_arginfo.h
3.447 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_float.h
15.105 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_frameless_function.h
5.389 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_gc.h
4.908 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_gdb.h
1.387 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_generators.h
7.484 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_generators_arginfo.h
2.821 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_globals.h
9.913 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_globals_macros.h
2.774 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_hash.h
51.24 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_highlight.h
2.267 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_hrtime.h
4.147 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_inheritance.h
3.129 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ini.h
11.909 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ini_parser.h
2.686 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ini_scanner.h
1.932 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ini_scanner_defs.h
0.24 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_interfaces.h
4.021 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_interfaces_arginfo.h
7.655 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_iterators.h
3.81 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_language_parser.h
6.092 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_language_scanner.h
2.999 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_language_scanner_defs.h
0.303 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_lazy_objects.h
4.661 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_list.h
3.401 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_llist.h
3.938 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_long.h
4.128 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_map_ptr.h
3.487 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_max_execution_timer.h
1.48 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_mmap.h
1.477 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_modules.h
4.713 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_multibyte.h
4.83 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_multiply.h
10.089 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_object_handlers.h
18.062 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_objects.h
2.024 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_objects_API.h
5.84 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_observer.h
8.824 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_operators.h
35.873 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_portability.h
28.122 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_property_hooks.h
1.781 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_ptr_stack.h
4.22 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_range_check.h
2.93 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_signal.h
4.009 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_simd.h
19.639 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_smart_str.h
6.88 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_smart_str_public.h
1.193 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_smart_string.h
4.23 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_smart_string_public.h
1.211 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_sort.h
1.523 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_stack.h
2.385 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_stream.h
3.556 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_string.h
22.409 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_strtod.h
2.289 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_strtod_int.h
2.807 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_system_id.h
1.391 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_type_info.h
4.438 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_types.h
51.843 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_variables.h
3.064 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_verify_type_inference.h
8.068 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_virtual_cwd.h
12.891 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm.h
2.063 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_def.h
298.83 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_execute.h
4 MB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_handlers.h
90.992 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_opcodes.h
15.093 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_trace_handlers.h
3.141 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_trace_lines.h
1.714 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_vm_trace_map.h
2.603 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_weakrefs.h
3.379 KB
12 Mar 2026 4.58 PM
root / linksafe
0644
zend_weakrefs_arginfo.h
3.359 KB
12 Mar 2026 4.58 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF