Arduino MIDI Library  Version 5.0.1
midi_Platform.h
Go to the documentation of this file.
1 
28 #pragma once
29 
30 #include "midi_Defs.h"
31 
33 
34 #if ARDUINO
35 
36 // DefaultPlatform is the Arduino Platform
37 struct DefaultPlatform
38 {
39  static unsigned long now() { return ::millis(); };
40 };
41 
42 #else
43 
45 {
46  static unsigned long now() { return 0; };
47 };
48 
49 #endif
50 
midi_Defs.h
MIDI Library for the Arduino - Definitions.
END_MIDI_NAMESPACE
#define END_MIDI_NAMESPACE
Definition: midi_Namespace.h:32
DefaultPlatform
Definition: midi_Platform.h:45
DefaultPlatform::now
static unsigned long now()
Definition: midi_Platform.h:46
BEGIN_MIDI_NAMESPACE
#define BEGIN_MIDI_NAMESPACE
Definition: midi_Namespace.h:31