Skip to content

Commit

Permalink
Create energia_utilities.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 20, 2024
1 parent 2740124 commit f971a64
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions targets/launchpad/msp430/stm32/libraries/energia_utilities.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import time

def delay(milliseconds):
time.sleep(milliseconds / 1000.0)

def millis():
return int(time.time() * 1000)

def micros():
return int(time.time() * 1000000)

0 comments on commit f971a64

Please sign in to comment.