---
title: mach_absolute_time
framework: driverkit
role: symbol
role_heading: Function
path: driverkit/mach_absolute_time
---

# mach_absolute_time

Returns current value of a clock that increments monotonically in tick units (starting at an arbitrary point), this clock does not increment while the system is asleep.

## Declaration

```occ
uint64_t mach_absolute_time();
```

## Return Value

Return Value 		Value of mach absolute time clock.

## Discussion

Discussion Prefer to use the equivalent clock_gettime_nsec_np(CLOCK_UPTIME_RAW) in nanoseconds. important: This API has the potential of being misused to access device signals to try to identify the device or user, also known as fingerprinting. Regardless of whether a user gives your app permission to track, fingerprinting is not allowed. When you use this API in your app or third-party SDK (an SDK not provided by Apple), declare your usage and the reason for using the API in your app or third-party SDK’s PrivacyInfo.xcprivacy file. For more information, including the list of valid reasons for using the API, see Describing use of required reason API.

## See Also

### Mach Timebase

- [mach_continuous_time](driverkit/mach_continuous_time.md)
- [mach_timebase_info](driverkit/mach_timebase_info-c.func.md)
- [mach_timebase_info_t](driverkit/mach_timebase_info_t.md)
- [Time Scales](driverkit/3223112-time_scales.md)
