picofuse-objc

Macros | Typedefs | Functions
NXDuration.h File Reference

Defines the NXDuration type, and constants for units of time. More...

#include <stdint.h>
Include dependency graph for NXDuration.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NXNanosecond   ((NXDuration)1)
 One nanosecond.
 
#define NXMicrosecond   (1000 * NXNanosecond)
 One microsecond.
 
#define NXMillisecond   (1000 * NXMicrosecond)
 One millisecond.
 
#define NXSecond   (1000 * NXMillisecond)
 One second.
 
#define NXMinute   (60 * NXSecond)
 One minute.
 
#define NXHour   (60 * NXMinute)
 One hour.
 
#define NXDay   (24 * NXHour)
 One day of 24 hours.
 

Typedefs

typedef int64_t NXDuration
 A length of time, in nanoseconds, which may be negative. More...
 

Functions

uint32_t NXDurationMilliseconds (NXDuration duration)
 Converts a duration to milliseconds, as used by picofuse. More...
 
NXDuration NXDurationTimestamp (void)
 Returns the time since the program started. More...
 
NXString * NXDurationDescription (NXDuration duration, NXDuration truncate)
 Returns a description of a duration, such as "1d2h3m4s5ms6us7ns", which NXDurationFromString reads. More...
 
BOOL NXDurationFromString (NXString *string, NXDuration *duration)
 Reads a duration from a string. More...
 

Detailed Description

Defines the NXDuration type, and constants for units of time.

Definition in file NXDuration.h.