objc

NXTimeInterval.h
Go to the documentation of this file.
1 
10 #pragma once
11 #include <stdint.h>
12 
31 typedef int64_t NXTimeInterval;
32 
37 extern const NXTimeInterval Nanosecond;
38 
43 extern const NXTimeInterval Millisecond;
44 
49 extern const NXTimeInterval Second;
50 
55 extern const NXTimeInterval Minute;
56 
61 extern const NXTimeInterval Hour;
62 
67 extern const NXTimeInterval Day;
68 
79 extern int32_t NXTimeIntervalMilliseconds(NXTimeInterval interval);
80 
93  NXTimeInterval truncate);
94 
const NXTimeInterval Day
1 day = 24 hours
const NXTimeInterval Hour
1 hour = 60 minutes
const NXTimeInterval Millisecond
1 millisecond = 1,000,000 nanoseconds
NXTimeInterval NXTimeIntervalTimestamp(void)
Get the time interval since the application started.
int64_t NXTimeInterval
Time interval type representing nanoseconds as a 64-bit signed integer.
int32_t NXTimeIntervalMilliseconds(NXTimeInterval interval)
Converts a time interval to milliseconds.
A class for managing and manipulating string objects.
Definition: NXString.h:20
NXString * NXTimeIntervalDescription(NXTimeInterval interval, NXTimeInterval truncate)
Converts a time interval to a string representation.
const NXTimeInterval Nanosecond
Base unit: 1 nanosecond.
const NXTimeInterval Minute
1 minute = 60 seconds
const NXTimeInterval Second
1 second = 1000 milliseconds