Added description to timers

This commit is contained in:
Peli de Halleux
2018-01-15 03:41:14 -08:00
parent cb5f9648f5
commit e1f623a94d
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,7 @@
namespace control {
/**
* A timer
*/
//% fixedInstances
export class Timer {
start: number;
@ -8,7 +11,7 @@ namespace control {
}
/**
* Gets the elapsed time in millis
* Gets the elapsed time in millis since the last reset
*/
//% blockId=timerMillis block="%timer|millis"
millis(): number {
@ -16,7 +19,7 @@ namespace control {
}
/**
* Gets the elapsed time in seconds
* Gets the elapsed time in seconds since the last reset
*/
//% blockId=timerSeconds block="%timer|seconds"
seconds(): number {