Skip to content

Instantly share code, notes, and snippets.

View chFleschutz's full-sized avatar
💭
42

Christoph Fleschutz chFleschutz

💭
42
View GitHub Profile
@chFleschutz
chFleschutz / timer.h
Last active December 6, 2024 17:54
C++20 Timer
#pragma once
#include <chrono>
#include <iostream>
class Timer
{
public:
Timer() : m_start{ std::chrono::high_resolution_clock::now() } {}
~Timer() = default;
@chFleschutz
chFleschutz / .clang-format
Last active May 14, 2026 12:52
clang-format
---
# clang-format
# See documentation at: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: false
AlignEscapedNewlines: Left
AlignOperands: false
AlignTrailingComments: true