summaryrefslogtreecommitdiff
path: root/reference
diff options
context:
space:
mode:
Diffstat (limited to 'reference')
-rw-r--r--reference/csharp/core/src/core_event.cs5
-rw-r--r--reference/csharp/core/src/core_idler.cs5
-rw-r--r--reference/csharp/core/src/core_poll.cs5
3 files changed, 3 insertions, 12 deletions
diff --git a/reference/csharp/core/src/core_event.cs b/reference/csharp/core/src/core_event.cs
index 2cb6d8e..b0caac8 100644
--- a/reference/csharp/core/src/core_event.cs
+++ b/reference/csharp/core/src/core_event.cs
@@ -31,10 +31,7 @@ public class Example
31 mainloop.PollHighEvt += PollCb; 31 mainloop.PollHighEvt += PollCb;
32 32
33 // This timer will control events fired by the main loop 33 // This timer will control events fired by the main loop
34 var timer = new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => { 34 var timer = new Efl.LoopTimer(mainloop, 0.1);
35 // Trigger every 100ms
36 etimer.SetInterval(0.1);
37 });
38 timer.SetName("Timer"); 35 timer.SetName("Timer");
39 // To count number of timer triggers 36 // To count number of timer triggers
40 int tick_count = 0; 37 int tick_count = 0;
diff --git a/reference/csharp/core/src/core_idler.cs b/reference/csharp/core/src/core_idler.cs
index e8853e5..7e27279 100644
--- a/reference/csharp/core/src/core_idler.cs
+++ b/reference/csharp/core/src/core_idler.cs
@@ -34,10 +34,7 @@ public class Example
34 }; 34 };
35 35
36 // Use a timer to exit the application 36 // Use a timer to exit the application
37 var timer = new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => { 37 var timer = new Efl.LoopTimer(mainloop, 0.01);
38 // Trigger after 10ms
39 etimer.SetInterval(0.01);
40 });
41 timer.TickEvt += (object sender, EventArgs e) => { 38 timer.TickEvt += (object sender, EventArgs e) => {
42 Console.WriteLine("TIMER: timer callback called, exiting."); 39 Console.WriteLine("TIMER: timer callback called, exiting.");
43 mainloop.Quit(new Eina.Value(0)); 40 mainloop.Quit(new Eina.Value(0));
diff --git a/reference/csharp/core/src/core_poll.cs b/reference/csharp/core/src/core_poll.cs
index 3ecf7bc..522a36a 100644
--- a/reference/csharp/core/src/core_poll.cs
+++ b/reference/csharp/core/src/core_poll.cs
@@ -33,10 +33,7 @@ public class Example
33 }; 33 };
34 34
35 // Use a timer to exit the application 35 // Use a timer to exit the application
36 var timer = new Efl.LoopTimer(mainloop, (Efl.LoopTimer etimer) => { 36 var timer = new Efl.LoopTimer(mainloop, 30);
37 // Trigger after 30s
38 etimer.SetInterval(30);
39 });
40 timer.TickEvt += (object sender, EventArgs e) => { 37 timer.TickEvt += (object sender, EventArgs e) => {
41 Console.WriteLine("\nTIMER: timer callback called, exiting."); 38 Console.WriteLine("\nTIMER: timer callback called, exiting.");
42 mainloop.Quit(new Eina.Value(0)); 39 mainloop.Quit(new Eina.Value(0));