basic algorithm for computing timestamp (file anme) for log stream writer