Questions tagged [microtime]

Anything related to programming languages functions (or other similar facilities) allowing the retrieval of the current time with a resolution in the microseconds range.

Anything related to programming languages functions (or other similar facilities) allowing the retrieval of the current time with a resolution in the microseconds (µs) range.

110 questions
-2
votes
1 answer

PHP - Microtime

How php microtime generated, why only 13 - 15 numbers returned and if i write time manually like this: and microtime look too…
-3
votes
1 answer

Is there a microtime.h library for C

I have a C program that has #include in the header, but when I compile it with GCC or g++, it shows the error - fatal error: microtime.h: No such file or directory 2 | #include How could I compile it. I am not sure…
sunny
  • 149
  • 8
-3
votes
1 answer

Find PHP microtime 1 day ago

How to find 1 day ago time in PHP microtime() format. I am trying like this. But still showing the current time. $date = date("Y-m-d H:i:s", strtotime('-1 day')); $val = microtime($date);
Naren
  • 43
  • 8
-3
votes
1 answer

Sort php/mysql microstime

what is the shortest and most beautiful way to sort an microtime value, which is importet from a mysql database, with php that the latest date/time is on the top or the first value of an array. Thanks
Mike
  • 3,200
  • 5
  • 22
  • 33
-4
votes
1 answer

Elapsed Time in PHP?

I've seen several questions on this topic, all with the same basic answer. Use microtime() to record the start and end time, then subtract. Mostly this works, except when the event spans the point where the seconds are incremented. At that point the…
Sloan Thrasher
  • 4,953
  • 3
  • 22
  • 40
1 2 3 4 5 6 7
8