fix performance problems with pulse logging (caching time string and approximating timestamp via samplecount)