Utility functions for time, which is represented as the number of seconds since epoch.

Summary

pwu:: | Utility functions for time, which is represented as the number of seconds since epoch. |

Static Actions | |

now | Return a time set the current time |

set | Return a time set the to given number of seconds |

double | Return the number of fractional seconds since epoch |

equal | Check if the given times are equal |

notEqual | Check if the given times are not equal |

greaterThan | Check if the first time is greater than the second time |

lessThan | Check if the first time is less than the second time |

add | Add two times together |

subtract | Subtract the second time from the first time |

elapsed | Get the number of fractional seconds that have passed since the given time |

pwu::Time set < real_secs | int_secs int usecs >

Return a time set the to given number of seconds

realSecs | a real value of the number of fractional seconds since epoch; if none given the current time is used |

intSecs | an int value of the number of seconds since epoch |

intUsecs | an int value of the number of microseconds in the fractional second |

a time

Return a time set the current time

pwu::Time now

Return a time set the to given number of seconds

pwu::Time set < real_secs | int_secs int usecs >

Return the number of fractional seconds since epoch

pwu::Time double time

Check if the given times are equal

pwu::Time equal time1 time2

Check if the given times are not equal

pwu::Time notEquals time1 time2

Check if the first time is greater than the second time

pwu::Time greaterThan time1 time2

Check if the first time is less than the second time

pwu::Time lessThan time1 time2

Add two times together

pwu::Time add time1 time2

Subtract the second time from the first time

pwu::Time subtract time1 time2

Get the number of fractional seconds that have passed since the given time

pwu::Time elapsed time