Laur's blog
  • Home
  • About
  • Support my work
Sign in Subscribe

timer

A collection of 2 posts
Launch a timed service - Strategies
android

Launch a timed service - Strategies

An app I am writing at the moment needs to have a periodic timer, i.e. a way to run a bit of code at regular intervals. After digging through different sources, I've found two recommended patterns to code such behaviour: 1. Using a periodic alarm: Android has
Dec 17, 2014 1 min read
Braindump: Use a Decorator to Time your Python Function
decorator

Braindump: Use a Decorator to Time your Python Function

In the programs I write these days I use timing methods to profile the code, mainly because I find it easier to split and sum deltas based on functions. For example, I have a script that loads an XML file, parses it into a relational-ish layout, and uploads the layout
Jul 4, 2014 2 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost