Skip to content

Instantly share code, notes, and snippets.

View MaciekSwiszczowski's full-sized avatar

Maciej Świszczowski MaciekSwiszczowski

View GitHub Profile
@MaciekSwiszczowski
MaciekSwiszczowski / Program.cs
Created August 11, 2019 17:36
Creating new thread with WPF window
class Program
{
static void Main(string[] args)
{
var observable = Observable
.Interval(TimeSpan.FromMilliseconds(500))
.TakeWhile(counter => counter < 10);
var thread = new Thread(() =>
{
using System;
using BenchmarkDotNet.Attributes;
namespace Benchmarks.Branching
{
internal class ReferenceType
{
public int Value;
}
using System;
using BenchmarkDotNet.Attributes;
using static BenchmarkDotNet.Diagnosers.HardwareCounter;
namespace Benchmarks.Branching
{
internal class ReferenceType
{
public int Value;