Math, asked by rohansingh888a, 1 year ago

2) If a client requests timestamping every two minutes, how would it look?

Answers

Answered by jangirrajat98
0
You haven’t specifically defined what “timestamping” involves or what exactly you’re looking for, but I’ll assume that it’s any sort of “ping” to a server or log file that contains the timestamp of the message and some additional data.

Additionally, you do not specify whether it’s every 2 minutes clock-time (12:00, 12:02, 12:04) or exactly 2 minutes after the last timestamping operation completes (12:00:30, 12:02:32, 12:04:32, etc.).

The best approach would be to use your Operating System’s or platform’s built-in scheduler or any sort of TaskManager: on iOS, that would be the `NSTimer` class; on *Nix systems, that would be `chron`, both of which would allow you to specify the operation to take place and the frequency at which the operation should execute.

For example, you can have `chron` run a bash script or any other script (i.e.: a Python program) every 2 minutes, and that script could do the timestamping you want: sending a request to the server or writing to a file.

Similar questions