Sming Framework API
(6.1.0-1-g6afd09f)
Toggle main menu visibility
Sming
Core
Clock.h
Go to the documentation of this file.
1
/****
2
* Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3
* Created 2015 by Skurydin Alexey
4
* http://github.com/SmingHub/Sming
5
* All files of the Sming Core are provided under the LGPL v3 license.
6
*
7
* Clock.h
8
*
9
****/
10
17
#pragma once
18
19
#include <cstdint>
20
#include <
sming_attr.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
32
unsigned
long
millis
(
void
);
33
40
unsigned
long
micros
(
void
);
41
46
void
delay
(uint32_t milliseconds);
47
51
#define delayMilliseconds(ms) delay(ms)
52
56
void
delayMicroseconds
(uint32_t
time
);
57
58
#ifdef __cplusplus
59
}
60
#endif
61
delay
void delay(uint32_t milliseconds)
Pause execution.
millis
unsigned long millis(void)
Get the system (up)time in milliseconds.
delayMicroseconds
void delayMicroseconds(uint32_t time)
Pause execution.
micros
unsigned long micros(void)
Get the time from clock in microseconds.
NanoTime::time
Time< T > time(Unit unit, T value)
Helper function to create a Time and deduce the type.
Definition:
NanoTime.h:432
sming_attr.h
Generated by
1.9.1