Tagged articles
timing
20 articles · Page 1 of 1
The article explains the drawbacks of manually using System.currentTimeMillis for multi‑stage timing, introduces Spring’s StopWatch utility from spring‑core, demonstrates its API and code examples, shows three common usage scenarios, warns about pitfalls, compares it with raw timers, and argues why Spring itself adopts StopWatch for concise, structured performance monitoring.
AOPJavaSpring
0 likes · 12 min read

This article explains the different Linux kernel delay mechanisms—busy delays like udelay, sleep delays like mdelay, and high‑resolution timers—detailing their inner workings, appropriate use cases, performance trade‑offs, and common pitfalls so developers can write efficient, stable driver code for industrial‑grade systems.
Driver DevelopmentLinux kerneldelay mechanisms
0 likes · 24 min read

The article explains why System.currentTimeMillis() is unsuitable for measuring code execution duration, demonstrates its non‑monotonic behavior and potential for negative results, and shows that System.nanoTime() provides a reliable, high‑resolution, monotonic timer for accurate performance analysis.
JavaPerformance MeasurementSystem.currentTimeMillis
0 likes · 8 min read

This article explains PHP’s microtime() function—its basic concept, syntax, optional parameters, practical code examples, and common scenarios such as measuring execution time and generating unique identifiers—to help developers handle time‑related tasks with high precision.
microtimephp-functionstiming
0 likes · 4 min read

This article explains several Java techniques for measuring code execution time—including Spring's StopWatch, System.nanoTime, new Date, and System.currentTimeMillis—provides sample code snippets, discusses their usage and output, while also briefly mentions related utilities, and contains promotional links and community invitations.
JavaStopwatchSystem.nanoTime
0 likes · 5 min read

This article explains several common techniques for measuring Java code execution time, including System.currentTimeMillis(), Spring's StopWatch utility, System.nanoTime(), and the use of new Date(), providing code examples and a brief overview of StopWatch's API for developers seeking precise performance metrics.
BackendJavaStopwatch
0 likes · 5 min read

This article explains why simple System.currentTimeMillis() timing is often insufficient, introduces Spring's org.springframework.util.StopWatch and Apache Commons' org.apache.commons.lang3.time.StopWatch, provides Maven dependencies and complete Java examples, and discusses important usage notes such as thread‑safety and task management.
Apache CommonsSpringStopwatch
0 likes · 11 min read

This article introduces four practical methods for monitoring Python code performance—using the built‑in time module, the %%time IPython magic, line_profiler for per‑line timing, and memory_profiler for detailed memory usage—complete with code examples and interpretation of results.
MemoryPythonline_profiler
0 likes · 7 min read

This article provides a comprehensive overview of DDR memory, explaining its basic architecture, the dynamic read/write process, essential commands, timing parameters, performance considerations, and practical tips for debugging and optimization in modern systems.
DDRMemoryRead/Write
0 likes · 14 min read

This article explains how Python decorators work by showing how to wrap functions for timing, handle arbitrary arguments, and create higher‑order decorators that can repeat calls, illustrating the power and flexibility of function wrapping in Python.
Code ExampleFunctionPython
0 likes · 9 min read

This guide compares simple Date‑based timing, System.currentTimeMillis(), and Spring's StopWatch utility, showing how to accurately measure and analyze execution durations of individual code blocks in Java applications.
BackendJavaSpring
0 likes · 8 min read

This article introduces four practical approaches for measuring code execution time in Java—including simple time‑difference calculation, StopWatch‑style utilities, functional interfaces with Supplier/IntConsumer, and AutoCloseable‑based tracing—providing code examples, usage patterns, and enhancements such as chainable start methods.
AutoCloseableJavaStopwatch
0 likes · 10 min read

This article explores various Java techniques for measuring code execution time—from basic start‑end time differences and StopWatch utilities to functional wrappers and AutoCloseable‑based TraceWatch—offering cleaner, less intrusive alternatives for performance profiling.
AutoCloseablecodeperformance
0 likes · 11 min read

This article explains why Python itself is not slow, demonstrates how to identify bottlenecks with timing and cProfile, and provides a collection of practical tips—such as using built‑in types, lru_cache, local variables, and efficient string formatting—to improve Python program performance by up to 30 percent.
LRU cachePythoncprofile
0 likes · 10 min read

This article explains how PHP's microtime() function returns the current Unix timestamp with microseconds, describes its optional parameter behavior, and provides a reusable example that measures script execution time using a custom microtime_float() helper.
PHPmicrotimeperformance
0 likes · 2 min read

This article introduces four approaches—simple time‑difference calculation, StopWatch‑like utilities, functional interfaces, and AutoCloseable—to accurately measure arbitrary code segment durations in Java, providing code examples and discussing their advantages and trade‑offs.
Code ProfilingJavabackend development
0 likes · 9 min read

An in‑depth guide explains Guava’s Stopwatch utility, showing how to create, start, stop, and reset timers, customize the time source via Ticker, compare it with raw System.nanoTime or System.currentTimeMillis, and highlights its advantages for accurate performance measurement in Java and Android projects.
GuavaJavaStopwatch
0 likes · 5 min read

This article introduces six practical methods for measuring Java code execution time, covering built‑in System.currentTimeMillis, System.nanoTime, new Date, Spring’s StopWatch, Apache Commons‑lang3 StopWatch, and Guava’s Stopwatch, and explains their underlying principles and usage examples.
JavaStopwatchSystem.nanoTime
0 likes · 11 min read

This guide shows how to configure a .curlrc file and use cURL’s timing variables to capture DNS lookup, connection, TLS handshake, transfer start, total time, and download size, enabling precise performance analysis of web requests.
curldiagnosticsnetwork
0 likes · 2 min read

This concise JavaScript example demonstrates how to employ setTimeout to schedule a console.log call that prints a colored 'Good night, friends~' message after a two‑hour delay, illustrating the use of timing functions and CSS styling within console output.
JavaScriptconsole.logfrontend
0 likes · 1 min read
