Skip to content

Instantly share code, notes, and snippets.

View enusbaum's full-sized avatar

Eric P. Nusbaum enusbaum

View GitHub Profile
@enusbaum
enusbaum / Oscillator.cs
Created March 9, 2018 12:22
Oscillator Class in C# to pulse an AutoResetEvent at a sub-millisecond rate
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
namespace TimerTest
{
/// <summary>
/// Oscillator class to pulse the specified AutoResetEvents at a higher frequency
/// than the minimum resolution of most system timers of 1ms
@enusbaum
enusbaum / CompileMSGtoMCV.cs
Created March 5, 2020 10:44
Code to compile a MajorBBS/Worldgroup MSG file to a MCV file for runtime
using MBBSEmu.Logging;
using NLog;
using System;
using System.IO;
using System.Text;
namespace MBBSEmu.Module
{
/// <summary>
/// Parses a given Worldgroup/MajorBBS MSG file and outputs a compiled MCV file