This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"unsafe" | |
"github.com/veandco/go-sdl2/sdl" | |
) | |
const ( | |
winWidth int32 = 800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"unsafe" | |
"github.com/veandco/go-sdl2/sdl" | |
) | |
const ( | |
winWidth int32 = 800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
namespace SpanSplit; | |
public class SplitTest | |
{ | |
public static string input = "asasdfhsjkdfsfh asdl;fkjasldfjasdfasdfshadjfaskldhfasdwewehfefhhfsjkdh"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.Logging; | |
namespace RateLimiterCore; | |
public class RateLimiter<T> : IRateLimiter<T>, IDisposable | |
{ | |
private int count = 0; | |
private Timer windowTimer; |