Arduino Programming Language: Millis

Name

millis()

Description

It is used to get the time in milliseconds since the program started. 
It returns a unsigned long.

Syntax

millis();

Parameters

  • none

Returns

unsigned long 

Usage

Application

Examples

unsigned long time = millis();
//prints time since program started
Serial.println(time);

Related Functions


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc