summaryrefslogtreecommitdiff
path: root/Modelica-Arduino-MDD_Arduino_Revised/Resources/src/delay.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modelica-Arduino-MDD_Arduino_Revised/Resources/src/delay.c')
-rwxr-xr-xModelica-Arduino-MDD_Arduino_Revised/Resources/src/delay.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Modelica-Arduino-MDD_Arduino_Revised/Resources/src/delay.c b/Modelica-Arduino-MDD_Arduino_Revised/Resources/src/delay.c
new file mode 100755
index 0000000..db9c175
--- /dev/null
+++ b/Modelica-Arduino-MDD_Arduino_Revised/Resources/src/delay.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <time.h>
+#include <math.h>
+#include <unistd.h>
+
+void delay(long int t)
+{
+ usleep(abs(t*1000));
+}
+