Files

copied

Scanning the repository...

Last update 10 years 1 month by hannesHuebi
FilesZeitmessungArduino_new
..
Properties
ISerialToArduino.cs
Ribbon1.Designer.cs
Ribbon1.cs
Ribbon1.resx
SerialToArduino.cs
SerialToArduinoRandom.cs
StopWatchClass.cs
ThisAddIn.Designer.cs
ThisAddIn.Designer.xml
ThisAddIn.cs
ZeitmessungArduino.csproj
ZeitmessungArduino.csproj.user
ZeitmessungArduino.sln
ZeitmessungArduino_TemporaryKey.pfx
paperboat_2015.xlsm
StopWatchClass.cs
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ZeitmessungArduino { class StopWatchClass { bool loopStopWatch = false; Stopwatch stopWatch = new Stopwatch(); public void loopUntilStop() { while (loopStopWatch) { System.Threading.Thread.Sleep(200); Globals.ThisAddIn.Application.Cells[29, 11] = (decimal)stopWatch.ElapsedMilliseconds / 1000; } } public void Start() { stopWatch.Restart(); loopStopWatch = true; loopUntilStop(); } public void Stop() { stopWatch.Stop(); loopStopWatch = false; } } }
Report a bug