mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.2.6 timing
This commit is contained in:
parent
df988e9295
commit
9bc7e48e6c
@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.2.6] - 2023-11-22
|
||||
- update readme.md
|
||||
|
||||
|
||||
## [0.2.5] - 2023-02-10
|
||||
- update readme.md
|
||||
- implement **toSeconds()** -> 45.123 or 45.123456
|
||||
|
@ -1,13 +1,17 @@
|
||||
|
||||
[![Arduino CI](https://github.com/RobTillaart/timing/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
|
||||
[![Arduino-lint](https://github.com/RobTillaart/timing/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/timing/actions/workflows/arduino-lint.yml)
|
||||
[![JSON check](https://github.com/RobTillaart/timing/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/timing/actions/workflows/jsoncheck.yml)
|
||||
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/timing.svg)](https://github.com/RobTillaart/timing/issues)
|
||||
|
||||
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/timing/blob/master/LICENSE)
|
||||
[![GitHub release](https://img.shields.io/github/release/RobTillaart/timing.svg?maxAge=3600)](https://github.com/RobTillaart/timing/releases)
|
||||
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/timing.svg)](https://registry.platformio.org/libraries/robtillaart/timing)
|
||||
|
||||
|
||||
# Timing
|
||||
|
||||
Arduino library with wrappers for seconds, millis, and micros.
|
||||
Arduino library with wrappers for seconds, milliseconds, and microseconds.
|
||||
|
||||
|
||||
## Description
|
||||
@ -113,8 +117,18 @@ Only for the seconds class for now.
|
||||
- measureable?
|
||||
- implement printable interface
|
||||
- add unit (s, ms, us)
|
||||
- what layout to use?
|
||||
- move code to .cpp file?
|
||||
- what layout to use? (culture dependent)
|
||||
- create a uint64_t seconds type?
|
||||
|
||||
#### Wont
|
||||
- move code to .cpp file?
|
||||
|
||||
|
||||
## Support
|
||||
|
||||
If you appreciate my libraries, you can support the development and maintenance.
|
||||
Improve the quality of the libraries by providing issues and Pull Requests, or
|
||||
donate through PayPal or GitHub sponsors.
|
||||
|
||||
Thank you,
|
||||
|
||||
|
@ -15,9 +15,9 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/timing"
|
||||
},
|
||||
"version": "0.2.5",
|
||||
"version": "0.2.6",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
"headers": "timing.h"
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=timing
|
||||
version=0.2.5
|
||||
version=0.2.6
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library with wrapper classes for seconds, millis and micros.
|
||||
|
@ -2,12 +2,12 @@
|
||||
//
|
||||
// FILE: timing.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.2.5
|
||||
// VERSION: 0.2.6
|
||||
// PURPOSE: Arduino library with wrapper classes for seconds millis micros
|
||||
// URL: https://github.com/RobTillaart/timing
|
||||
|
||||
|
||||
#define TIMING_LIB_VERSION (F("0.2.5"))
|
||||
#define TIMING_LIB_VERSION (F("0.2.6"))
|
||||
|
||||
|
||||
class microSeconds
|
||||
@ -52,6 +52,7 @@ public:
|
||||
double toSeconds() { return millis() * 0.001 - _offset; };
|
||||
|
||||
// experimental
|
||||
// does not include days (beyond 99 hrs)
|
||||
char * toClock()
|
||||
{
|
||||
static char buf[12];
|
||||
|
Loading…
Reference in New Issue
Block a user