Skip to content

Commit 9210ed4

Browse files
authored
add changelog.md (#4)
1 parent 075596c commit 9210ed4

File tree

6 files changed

+80
-28
lines changed

6 files changed

+80
-28
lines changed

.arduino-ci.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
1+
platforms:
2+
rpipico:
3+
board: rp2040:rp2040:rpipico
4+
package: rp2040:rp2040
5+
gcc:
6+
features:
7+
defines:
8+
- ARDUINO_ARCH_RP2040
9+
warnings:
10+
flags:
11+
12+
packages:
13+
rp2040:rp2040:
14+
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
15+
116
compile:
217
# Choosing to run compilation tests on 2 different Arduino platforms
318
platforms:
419
- uno
5-
- due
6-
- zero
7-
- leonardo
20+
# - due
21+
# - zero
22+
# - leonardo
823
- m4
924
- esp32
1025
- esp8266
11-
- mega2560
26+
# - mega2560
27+
- rpipico
1228
libraries:
1329
- "printHelpers"
1430

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Change Log timing
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
9+
## [0.2.4] - 2022-11-26
10+
- Add RP2040 support to build-CI.
11+
- Add CHANGELOG.md
12+
- update readme.md
13+
14+
15+
## [0.2.3] - 2021-12-29
16+
- update library.json
17+
- update license
18+
- minor edits
19+
20+
## [0.2.2] - 2021-05-27
21+
- added Arduino-lint
22+
23+
## [0.2.1] - 2021-01-09
24+
- added Arduino-CI + unit test
25+
26+
## [0.2.0] - 2020-07-07
27+
- renamed to timing.h
28+
29+
----
30+
31+
## [0.1.02] - 2015-03-02
32+
- move all to mymillis.h file so compiler can optimize
33+
34+
## [0.1.01] - 2011-07-19
35+
- add lib version
36+
37+
## [0.1.00] - 2011-01-04
38+
- initial version

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ Therefore they have the same restrictions as these functions with respect to
2424
overflow and accuracy. Depending on e.g. interrupts millis and micros can drift.
2525

2626

27-
| class | overflow after | Notes |
28-
|:-------------|:-------------------------|:--------------------|
29-
| seconds | 49 days, 17:02:47 | based upon millis() |
30-
| milliSeconds | 49 days, 17:02:47.297 |
31-
| microSeconds | 00 days 01:11:34.967296 |
27+
| class | overflow after | Notes |
28+
|:---------------|:---------------------------|:----------------------|
29+
| seconds | 49 days, 17:02:47 | based upon millis() |
30+
| milliSeconds | 49 days, 17:02:47.297 |
31+
| microSeconds | 00 days 01:11:34.967296 |
3232

3333

3434
## Applications
@@ -59,19 +59,26 @@ See examples.
5959

6060
## Future
6161

62+
#### must
6263
- test on ESP32
63-
- nanos() on ESP32 ?
64-
- implement printable interface (add unit)
65-
- ?
66-
- implement toClock()
64+
65+
#### should
66+
- implement toClock()
6767
- idea to give it a clock print layout
6868
- seconds.toClock() -> DD 12:34:56
6969
- milliSeconds.toClock(3) -> 12:23:45.123 (3) == 3 decimals..
7070
- milliSeconds.toClock(1) -> 12:23:45.1
7171
- microSeconds.toCLock() -> 12:23:45.123456 ???
72+
- printHelpers class?
7273
- implement toSeconds()
7374
- double milliSeconds.toSeconds() -> 45.123
7475
- double microSeconds.toSeconds() -> 45.123456
76+
77+
#### could
78+
- nanos() on ESP32 ?
79+
- implement printable interface
80+
- add unit (s, ms, us)
81+
- what layout to use?
7582
- update documentation
7683
- rounding effect, describe
7784

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/timing"
1717
},
18-
"version": "0.2.3",
18+
"version": "0.2.4",
1919
"license": "MIT",
2020
"frameworks": "arduino",
2121
"platforms": "*",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=timing
2-
version=0.2.3
2+
version=0.2.4
33
author=Rob Tillaart <rob.tillaart@gmail.com>
44
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
55
sentence=Arduino library with wrapper classes for seconds millis micros.

timing.h

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,12 @@
22
//
33
// FILE: timing.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.2.3
5+
// VERSION: 0.2.4
66
// PURPOSE: Arduino library with wrapper classes for seconds millis micros
77
// URL: https://github.com/RobTillaart/timing
8-
//
9-
// HISTORY:
10-
// 0.1.00 2011-01-04 initial version
11-
// 0.1.01 2011-07-19 lib version
12-
// 0.1.02 2015-03-02 move all to mymillis.h file so compiler can optimize
13-
// 0.2.0 2020-07-07 renamed to timing.h
14-
// 0.2.1 2021-01-09 added Arduino-CI + unit test
15-
// 0.2.2 2021-05-27 added Arduino-lint
16-
// 0.2.3 2021-12-29 update library.json, license, minor edits
178

189

19-
#define TIMING_LIB_VERSION (F("0.2.3"))
10+
#define TIMING_LIB_VERSION (F("0.2.4"))
2011

2112

2213
class microSeconds
@@ -49,8 +40,8 @@ class seconds
4940
{
5041
public:
5142
seconds() { set(0); }
52-
uint32_t now() { return millis()/1000UL - _offset; }
53-
void set(uint32_t value = 0UL) { _offset = millis()/1000UL - value; }
43+
uint32_t now() { return millis() / 1000UL - _offset; }
44+
void set(uint32_t value = 0UL) { _offset = millis() / 1000UL - value; }
5445
uint32_t getOffset() { return _offset; };
5546

5647
private:

0 commit comments

Comments
 (0)