Loading...
Searching...
No Matches
units.h File Reference

Swatch internet time in .beats, and distance formatting in miles or kilometres. More...

#include <pebble.h>

Go to the source code of this file.

Functions

int units_swatch_beats (void)
 The current swatch internet time, in .beats.
uint32_t units_ms_until_next_beat (void)
 Milliseconds until the next .beats boundary.
void units_format_distance (char *buffer, size_t size, int meters, bool miles)
 Formats a distance as "N.N MI" or "N.N KM".
void units_format_distance_value (char *buffer, size_t size, int meters, bool miles)
 Formats a distance as just "N.N", with no unit suffix, rounded to a tenth.
const char * units_distance_unit (bool miles)
 The unit label for the current distance mode, "MI" or "KM".

Detailed Description

Swatch internet time in .beats, and distance formatting in miles or kilometres.