Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RobTillaart committed Nov 22, 2023
1 parent 4c5e398 commit 44693af
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
4 changes: 2 additions & 2 deletions library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 3 additions & 2 deletions timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -52,6 +52,7 @@ class seconds
double toSeconds() { return millis() * 0.001 - _offset; };

// experimental
// does not include days (beyond 99 hrs)
char * toClock()
{
static char buf[12];
Expand Down

0 comments on commit 44693af

Please sign in to comment.